Entity Framework Core Data Annotation Database Generated Values
问题 The Entity Framework Core documentation for Generated Properties makes it seem like Data Annotations can be used for generated code first "timestamp" properties such as created/updated on as a DateTime type. When trying to use the following data annotations along with code first migrations: public class Foo { // some properties [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public DateTime Created { get; set; } // more properties } I receive the following error when attempting to