Page 1 of 1

Default values?

Posted: Thu 15 Dec 2011 14:51
by picrap
Hi,

we have some default values in our database (set when the insert is made), but Entity Developer apparently does not handle this.
In theory this should set the "Generated" property to "Insert".
Have I missed something, or is this actually a bug?

Thanks.

Posted: Tue 20 Dec 2011 10:14
by Shalex
picrap wrote:In theory this should set the "Generated" property to "Insert".
Not exactly. If you mark the property as "Generated=Insert", its value will be never passed to the database even if you initialize it in your code.

http://knol.google.com/k/nhibernate-cha ... Properties:
"Properties marked as generated must additionally be non-insertable and non-updateable."