Top "Entity-framework" questions

Entity Framework is a LINQ-based object-database mapper for .NET.

No connection string named 'MyEntities' could be found in the application config file

I am using entity framework and ASP.NET MVC 4 to build an application My solution is split into two projects; …

c# entity-framework asp.net-mvc-4
The entity type <type> is not part of the model for the current context

I am getting into the Entity Framework, but I am unsure if I am missing a critical point in the …

c# entity-framework ef-code-first dbcontext
SqlException from Entity Framework - New transaction is not allowed because there are other threads running in the session

I am currently getting this error: System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads …

c# entity-framework transactions inversion-of-control
A circular reference was detected while serializing an object of type 'SubSonic.Schema .DatabaseColumn'.

I am trying to do a simple JSON return but I am having issues I have the following below. public …

c# .net json entity-framework subsonic
Ignoring a class property in Entity Framework 4.1 Code First

My understanding is that the [NotMapped] attribute is not available until EF 5 which is currently in CTP so we cannot …

c# .net entity-framework ef-code-first entity-framework-4.1
Entity Framework select distinct name

How can I do this SQL query with Entity Framework? SELECT DISTINCT NAME FROM TestAddresses

c# linq entity-framework distinct
Unable to create a constant value of type Only primitive types or enumeration types are supported in this context

I am getting this error for the query below Unable to create a constant value of type API.Models.PersonProtocol. …

c# linq entity-framework join
Reset Entity-Framework Migrations

I've mucked up my migrations, I used IgnoreChanges on the initial migration, but now I want to delete all my …

entity-framework database-migration entity-framework-migrations
LEFT JOIN in LINQ to entities?

I'm trying out LINQ to entities. I have a problem with the following: I want it to do this: SELECT …

c# linq entity-framework entity-framework-4 linq-to-entities
The instance of entity type cannot be tracked because another instance of this type with the same key is already being tracked

I have a Service Object Update public bool Update(object original, object modified) { var originalClient = (Client)original; var modifiedClient = (Client)…

c# asp.net entity-framework