I did this project before with Entity Framework and Microsoft SQL Server 2008 without any problems. I had a table with two simple columns (ID and Name). I bound them to a DataGridView and I had no problem with Insert, Update or Delete.
Now I tried to do same thing but this time with two much complicated tables with auto-increment columns and foreign keys.
When I tried to save inserted information in database I had following exceptions:
An error occurred while updating the entries. See the inner exception for details.
INNER EXCEPTION: String or binary data would be truncated. The statement has been terminated.
After almost 10 times stop and re-run project error gone without I change anything. What was this error for? And why it gone without I change anythings?
I can not trust to Entity Framework if it want to throw random exceptions without reasons and stop to throw those exceptions after a while.