If you are using Entity Framework and you want your data store to generate some values automatically (e.g., to automatically fill a CreateDate with the date and time that the object was created), you should configure the field as Store-Generated. It’s a property on the field in the EDM designer. Use the value “Identity” for values that will be set once (CreateDate) and “Computed” for values that may change at any time.

Categories: .NETADO.NET

Leave a Reply