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
I had the same problem and solve it by put the [Column(TypeName = "datetime2")] attribute to related properties, like below sample:
[Column(TypeName = "datetime2")]
[Column(TypeName = "datetime2")] public DateTime? PropertyName { get; set; }