Top "Entity-framework-4.1" questions

This tag is for the ADO.

EF Code First - how to set identity seed?

I have a entity class public class Employee { public long Id { get; set; } public string Name { get; set; } } I have …

c# .net ef-code-first entity-framework-4.1
Conflicting changes to the role x of the relationship y have been detected

I am having the exception Conflicting changes to the role x of the relationship y have been detected. Every time …

c# asp.net-mvc entity-framework entity-framework-4.1 ef-code-first
Why is inserting entities in EF 4.1 so slow compared to ObjectContext?

Basically, I insert 35000 objects within one transaction: using(var uow = new MyContext()){ for(int i = 1; i < 35000; i++) { var o = …

c# entity-framework entity-framework-4.1
How to configure many to many relationship using entity framework fluent API

I'm trying to set up a many to many relationship in EF code first but the default conventions is getting …

c# entity-framework-4.1 ef-code-first associations
Entity Framework 4.1: How do I delete by object Id

I would like to know how to delete an object from Entity Framework 4.1 without first having to load the object …

.net entity-framework entity-framework-4.1
Understanding code first virtual properties

Hi I am just learning to work with Entity Framework Code First and I can not seem to understand something.…

c# entity-framework entity-framework-4.1
Implementing one-to-zero-or-one relation in SQL Server

I'm using Entity Framework 4.1 database first approach. I've used legacy database. In my edmx file which created entity classes based …

sql-server sql-server-2008 entity-framework-4.1 entity-relationship relation
EF Code First DBContext and Transactions

I would like know what is the best possible way to implement transactions with DBContext. In particular, Does DbContext.SaveChanges …

entity-framework transactions entity-framework-4.1 dbcontext
Multiple Primary Key with asp .net mvc 3

I'm using asp .net mvc 3, and I have a problem with an entity that contains 2 primary key, when I try …

sql-server-2005 asp.net-mvc-3 entity-framework-4.1
One DbContext per request in ASP.NET MVC (without IOC container)

Apologies if this has already been answered, but how do you guarantee one Entity Framework DbContext per request if you …

asp.net-mvc entity-framework asp.net-mvc-3 entity-framework-4.1 ef-code-first