Entity Framework

There are 2 entries for the tag Entity Framework

Entity Framework and Join Tables.

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 ......

Posted On Tuesday, September 8, 2009 5:02 PM | Comments (0)

Error: conversion of a datetime2 data type to a datetime data type…

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 ......

Posted On Sunday, September 6, 2009 5:01 PM | Comments (1)

Copyright © intermark

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski