This project is read-only.

Guids for Primary Key - Not Gen'ing Id's

Sep 10, 2012 at 8:36 PM

I have a table with the Primary Key datatype set as a uniqueidentifier. I also have newid() set as the table's default value.

However, the generated BLL is saving an empty Guid as the key for new records. I've looked around the template a bit and don't see an easy way to modify any code to use Guid.NewGuid() as the default. Also, setting the DefaultValue on the ControlParameter doesn't seem to work.