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
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
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
While playing around with the Entity Framework and NHibernate using POCO entities, I made the following observation which I find a bit unusual:
This question has been asked in a few variations, but I believe that my issue is somewhat uni开发者_StackOverflowque.
Good morning everyone, I am trying to tackle a problem I run into with EF code first. My schema is the following
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
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
I get this error: System.Data.SqlClient.SqlException The DELETE statement conflicted with the REFERENCE constraint \"FK_comments_postId__164452B1\". The
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