This project is read-only.

SchemaBuilder...WithDefault - NEWID()

Topics: Customizing Orchard, Installing Orchard, Writing modules
Oct 10, 2016 at 7:59 PM
is there any way to create column of type UNIQUEIDENTIFIER with Default property set to MS SQL function NEWID()?
When i use WithDefault("NEWID()") it makes ('(NEWID())') in SQL Default property of column, which is wrong of course...
I'm able do it with ExecuteSql, but it should be "cleaner" if i could add it using WithDefault...