【EF】An error occurred while updating the entries. See the inner exception for details.

This error occurred while inserting data using EF

View internal errors

string str = ex.InnerException.InnerException.Message;

Turns out the mistake was
A conversion from the dateTime2 data type to the Datetime data type produces an out-of-scope value. The statement has terminated.

Read More: