entity-framework-4
Entity Framework - Crash on Detaching list of objects
I am working on a winform application with EF 4.0. Below code, crashes with issue \'The object cannot be detached because it is not attached to the ObjectStateManager.\' when it tries to detach the l[详细]
2023-04-09 00:40 分类:问答Confusion with Entity Framework versions
I am having hard time understanding the Entity Framework versions released by Microsoft. I have a base entity framework version of 4.1 which didn\'t support enums by itself. After the June 2011 CTP wa[详细]
2023-04-09 00:09 分类:问答Entity Framework Data Reader Production Error
Only on production, I\'m getting this error: \"Execution of the command requires an open and available connection. The connection\'s current state is closed.\"What\'s weird is where its saying its hap[详细]
2023-04-08 17:47 分类:问答Difference between lazy loading in NHibernate and Entity Framework
While playing around with the Entity Framework and NHibernate using POCO entities, I made the following observation which I find a bit unusual:[详细]
2023-04-08 17:12 分类:问答How do I create an Entity with Multiple Navigation Properties to the same Table?
This question has been asked in a few variations, but I believe that my issue is somewhat uni开发者_StackOverflowque.[详细]
2023-04-08 15:22 分类:问答Entity Framework 4: Many to Many relationship IQueryable instead of ICollection
Good morning everyone, I am trying to tackle a problem I run into with EF code first. My schema is the following[详细]
2023-04-08 14:45 分类:问答Map multiple entities to EF4 abstract base class or interface?
I have multiple tables in a db that are identical in terms of column structure. I\'d like to have this modelled in EF4 so that they all inherit from a single abstract base class, so I can write commo[详细]
2023-04-08 10:13 分类:问答silverlight-4.0 INotifyDataErrorInfo with Entity Framework
I am using EF 4.0 with Silverlight 4.0. I wanted to validate my Entity using INotifyDataErrorInfo. For that do I need to create duplicate class on clien开发者_开发知识库tside and implement INotifyData[详细]
2023-04-08 08:47 分类:问答EF - Cascade Delete Not Working, Can't Delete Object
I get this error: System.Data.SqlClient.SqlException The DELETE statement conflicted with the REFERENCE constraint \"FK_comments_postId__164452B1\". The[详细]
2023-04-08 08:39 分类:问答Entity Framework (4.0) - Adding new records with Foreign Key
We have a table \"Issues\" with a foreign fey to the \"Contacts\" table\". Ideally when a new Issue is added the user should select the Contact from a drop down. However, in some cases the contact may[详细]
2023-04-08 06:49 分类:问答