Getting this error:
System.Data.SqlClient.SqlException : The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range v
Another possible solution is to set the sql column type of the field to datetime2. this can be done using fluentapi.
Property(x => x.TheDateTimeField) .HasColumnType("datetime2");
Note: This is a solution for sql server 2008 upwards as datetime2 is not available for sql server 2005 or below.