ORMapper.Templates.2.6
1) Removed Prefix property from mapping template.2) Added CascadeDelete property to mapping template.3) Added LazyLoad property to mapping template.4) Added shortenPropertyName property to mapping template (Thanks David Neal)5) Added support for tracking member names to prevent duplicates6) Changed GetNullValue to -1 for numbers7) Imporved ManyToMany member naming including duplicate detection. (Thanks Steven A. Smith)8) Added support for ManyToMany relationships where the primary and secondard tables are the same.9) Added Delete(whereClause) and DeleteByKey(primaryKey) method to the generated classes default methods10) Added Update(whereClause, updateClause) method to the generated classes default methods11) Added support to initialize member variables with the nullValue when set (Thanks David Neal)12) Added support for c# classes to use allias data types (Thanks David Neal)13) Update vb class generator to be more inline with the c# generator
Comments: Flat Nested Threaded Embedded Oldest First Newest First Awesome! By jensenkd on Monday, April 11, 2005 (EST) I love how great these templates are getting. 1 thing I noticed is in VB.NET templates, some of my tables are keywords in VB.NET For example, I have a Module table and an Event table. I'm wondering if there is a way in Codesmith that you could determine if the table name is a keyword and then add [] around it? Keep up the great work! Kevin Reply to this Comment Where do you place your mapping.config file? By jensenkd on Tuesday, April 19, 2005 (EST) I'm wondering what would be the best practice? Kevin Reply to this Comment alias attribute on entity element By pschaef on Wednesday, May 25, 2005 (EST) Thanks for the very nice templates! I made a small change to Internal.VB.Class.cst -- I look for an alias element on the relation entity in the mapping file. It felt “out of place” to me that I could alias other items in a class but not the collection property. I know that this element isn't in Paul Wilson's schema, but I wanted to post a little note in case others liked the idea. Reply to this Comment
I love how great these templates are getting.
1 thing I noticed is in VB.NET templates, some of my tables are keywords in VB.NET
For example, I have a Module table and an Event table.
I'm wondering if there is a way in Codesmith that you could determine if the table name is a keyword and then add [] around it?
Keep up the great work!
Kevin
Reply to this Comment
I'm wondering what would be the best practice?
Thanks for the very nice templates!
I made a small change to Internal.VB.Class.cst -- I look for an alias element on the relation entity in the mapping file. It felt “out of place” to me that I could alias other items in a class but not the collection property.
I know that this element isn't in Paul Wilson's schema, but I wanted to post a little note in case others liked the idea.