Category Archives: Entity Framework

How to solve Exception : The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value with Entity Framework when calling SaveChanges

In order to fix this Issue you need to go on your EDMX file and View the Model.
So select the field interested and under it’s properties select “Computed” for the property StoreGeneratedPattern