Top "Entity-framework-4.1" questions

This tag is for the ADO.

How to update only one table for model from database with Entity Framework?

I have a model generated from db with Entity Framework. When I have any change in database, I update model …

entity-framework entity-framework-4 entity-framework-4.1 entity-framework-5
How to update not every fields of an object using Entity Framework and EntityState.Modified

I need to update all fields except property1 and property2 for the given entity object. Having this code: [HttpPost] public …

entity-framework entity-framework-4.1
Can you create sql views / stored procedure using Entity Framework 4.1 Code first approach

Entity Framework 4.1 Code First works great creating tables and relationships. Is it possible to create sql views or stored procedure …

c# entity-framework-4.1 entity-framework-migrations code-first
Entity Framework - Is there a way to automatically eager-load child entities without Include()?

Is there a way to decorate your POCO classes to automatically eager-load child entities without having to use Include() every …

entity-framework-4.1 entity code-first entity-framework-4.3
"Cannot drop database because it is currently in use". How to fix?

Having this simple code I get "Cannot drop database "test_db" because it is currently in use" (CleanUp method) as …

database unit-testing entity-framework entity-framework-4.1 database-connection
Is DbContext thread safe?

I was wondering if the DbContext class is thread safe, I am assuming it's not, as I am currently executing …

c# thread-safety entity-framework-4.1
Attaching and detaching entities from context correctly in EF4.1

I am trying to implement caching mechanism for entities. And to use the entities correctly and seamlessly with the caching …

c# asp.net asp.net-mvc-3 entity-framework entity-framework-4.1
Why is .Contains slow? Most efficient way to get multiple entities by primary key?

What's the most efficient way to select multiple entities by primary key? public IEnumerable<Models.Image> GetImagesById(IEnumerable&…

c# .net entity-framework linq entity-framework-4.1
No mapping exists from object type System.Collections.Generic.List when executing stored proc with parameters in EF 4.3

Lately I've been working on stored procedure and encountered 1 strange problem. First, I was able to successfully call a stored …

entity-framework entity-framework-4.1 ef-code-first
EF 4.1 Code First error - The entity type SomeType is not part of the model for the current context

While working with EF code first I get error given below at different times: The entity type SomeType is not …

entity-framework code-first entity-framework-4.1