Entity Framework - default values doesn't set in sql server table
问题 SQL server 2005 database table has a column 'createdon' for which default value set to getdate(). I am trying to add a record using entity framework. 'createdon' column is not getting updated. Did I miss any property in Entity framework, please suggest. 回答1: This is one of the few issues that are problematic with Entity Framework. Say you have a class that looks like this: public class MyEntity { // Id is a PK on the table with Auto-Increment public int Id { get; set; } // CreatedOn is a