I've create a Fluent convention for mapping a specific attribute that
conveys that a datetime property won't be null and will have the
database insert today's date for its value, this is its code:
instance.Not.Nullable();
instance.Default("getdate()");
instance.Generated.Insert();
The insert works as expected. What's not expected is that when I
update the record and set the property ("Modified") to today's date,
the value is not persisted - i can see from the sql statement
generated by NH that it is not in the statement. I tried adding to no
avail:
instance.Update();
I am right in thinking this should work?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.