Entity Framework
There are 2 entries for the tag
Entity Framework
I had a true join table (two foreign keys which, together, were a composite key in the join table). I followed the steps enumerated in Julie Lerman’s Blog Don't Be Iffy and got unexpected behavior. I was not only inserting new rows where they belonged, but was adding to one of the tables with the foreign key! Not good! Since she is the “go-to-Guru” I was baffled! Then I realized the issue, and used Julie’s Platinum Rule to solve the problem: “The Platinum Rule is that an object graph (for example ......
Using VS2008 and Entity Framework, the exact error message is: "The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated." There are several causes for this rather generic (and not very intuitive) error message. I had changed some fields in the SQL 2008 database from non-nullable to nullable, and then asked the tool to “update model from database”. The error message appeared in that instance because one part of the ADO.NET ......