The mysterious code generator in our October CTP

In our newsgroup, Bill asked what the deal was with the code generation that we expose via the context menus on the diagram.
 
I thought I'd share my answer a bit more widely…
 
The code generation that's in the current download is 
indicative of the type of code that will be generated to 
provide access to the domain model. The APIs exposed by 
this code are the type of APIs that you will program 
against if you want to access model data created by an 
end user of your custom Visual DSL Designer.

For example, if your domain model contains Houses and 
Rooms, then this generated code might contain a House 
class with a Rooms collection on it.

The generated code will be sufficient for many purposes 
without additions.  However, you may well want to use 
partial classes to add functionality.
Some examples:
Code to validate that a set of constraints hold across 
your model.
Code to create coherent pieces of model with one call 
(e.g. a House with foundations and a roof)

In our next CTP, we will code generate a complete working 
visual DSL designer from model data, including the code 
for the domain model and all the code necessary to host 
it in Visual Studio with a design surface.  Again, you'll 
usually want to add custom code for functions that we 
don't generate.

This posting is provided "AS IS" with no warranties, and 
confers no rights.
Published 08 December 04 10:03 by GarethJ

Comments

# GarethJ s WebLog The mysterious code generator in our October CTP | Portable Greenhouse said on June 3, 2009 4:12 AM:

PingBack from http://portablegreenhousesite.info/story.php?id=32392

# GarethJ s WebLog The mysterious code generator in our October CTP | Quick Diets said on June 9, 2009 7:38 AM:

PingBack from http://quickdietsite.info/story.php?id=5982

# GarethJ s WebLog The mysterious code generator in our October CTP | Cellulite Creams said on June 9, 2009 9:42 PM:

PingBack from http://cellulitecreamsite.info/story.php?id=9841

# GarethJ s WebLog The mysterious code generator in our October CTP | Outdoor Decor said on June 18, 2009 11:55 PM:

PingBack from http://outdoordecoration.info/story.php?id=4430

# GarethJ s WebLog The mysterious code generator in our October CTP | debt consolidator said on June 19, 2009 11:20 AM:

PingBack from http://mydebtconsolidator.info/story.php?id=16531

New Comments to this post are disabled

Search

This Blog

Disclaimer
The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion.
All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Tags

Archives

Architects who Model

DSL Tools Team

Links

Syndication

Page view tracker