I am inserting an object into a SQL Server db via the EntityFramework 4 (EF). On the receiving table there is a column of (CreatedDate
), which has its default value set to getdate()
. So I do not provide it to the EF assuming its value will be defaulted by SQL Server to getdate()
.
However this doesn't happen; instead EF return a validation error n SaveChanges()
.
Is there any reason that you know for this happening? Please let me know.
Many thanks.