AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

Add GuidAttribute to PK Accessors #534

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please modify the PLINQO templates to automatically add the "GuidAttribute" 
attribute to the accessor for the primary key columns were the ColumnSchema 
does not report a default value.  It is my opinion that this will increase the 
usability of the templates and save the user additional time.

Currently, CS/PLINQO users must either manually stuff a value for the key 
property, before doing an Insert, when the PK is a uniqueidentifier and the 
column does not have a default value.  The other option is for them to manually 
alter the Metadata class and add the "GuidAttribute" attribute to allow 
framework to automatically set the value.  Since these are the only two options 
for user, and since the framework will handle the latter automatically, it only 
make sense that it be added to the template.

Thanx,
Fred

Original issue reported on code.google.com by fred.lac...@gmail.com on 1 Dec 2010 at 12:02

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 8 Dec 2010 at 11:10

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 8 Dec 2010 at 11:10