Top "Entity-framework-4" questions

A tag for ADO.

Entity Framework initialization is SLOW -- what can I do to bootstrap it faster?

My EF 4.3.1 model has 200-odd tables. Initial startup is horrible, several minutes. A DotTrace-captured profile implies some terrible algorithm/scalability …

c# performance entity-framework-4 entity-framework-4.3
Entity Framework: Set Delete Rule with CodeFirst

I am using EF4 CTP 5, CodeFirst. Please see my classes first: public class Guest { [Key] public Guid GuestID { get; set; } …

entity-framework-4 entity-framework-ctp5 cascading-deletes
Preventing StackOverflowException while serializing Entity Framework object graph into Json

I want to serialize an Entity Framework Self-Tracking Entities full object graph (parent + children in one to many relationships) into …

c#-4.0 entity-framework-4 self-tracking-entities servicestack jsonserializer
How to create Entity Framework ObjectContext?

I have many DBs in one SQL server. I placed connectionString as template(look at Initial Catalog={0}) into web.config. &…

entity-framework c#-4.0 entity-framework-4 objectcontext
Unit testing with EF4 "Code First" and Repository

I am attempting to get a handle on Unit testing a very simple ASP.NET MVC test app I've built …

c# asp.net-mvc unit-testing mocking entity-framework-4
Occasional "The underlying provider failed on Open" errors when using EF4 (edmx model)

I hope someone can help me with a solution to the following error. The application in which the error happens …

c# asp.net-mvc-3 entity-framework-4 edmx
Using NuGet Package Manager console outside Visual Studio to run Entity Framework Migrations

Is there anyway to open NuGet Package Manager console outside Visual Studio ? My objective is to run some migrations, which …

visual-studio-2010 entity-framework-4 nuget entity-framework-migrations
What is the best practice for sending data to the client: POCO or DTO?

I'm starting a project using EF 4 and POCO. What is the best practice for sending data to the client ? Should …

c# .net entity-framework-4 poco dto
How can i convert a DBQuery<T> to an ObjectQuery<T>?

I've got a DBQuery<T> which converts to an IQueryable<T> (this bit works fine). But …

.net entity-framework entity-framework-4 objectquery