Top "Entity-framework-4" questions

A tag for ADO.

Delete child objects in Entity Framework

I'm using EF and when I do this: foreach (var reg in detail.Regs) { this.db.Regs.DeleteObject(reg); } I …

entity-framework-4 entity-relationship
DbUpdateException with entities that do not expose foreign key properties

I have an entity model with User and Person entities, such that each User must be associated with exactly 1 Person, …

entity-framework entity-framework-4 ef-code-first entity-framework-4.3
specify a different name for table|column name in EF4

I'm using EF4 with CodeFirst public class People : DbContext { public DbSet<Human> Humans { get; set; } public DbSet<…

entity-framework entity-framework-4
Entity Framework mergeoption notracking bad performance

I have a strange behavior trying to execute a query declaring ObjectQuery MergeOption to "NoTracking", in this case entity framework …

entity-framework entity-framework-4 linq-to-entities
Stop Entity Framework from modifying database

I'm starting to play around with the code-first approach to the entity framework, primarily so that I can decorate my …

c# .net entity-framework entity-framework-4
Adding [DataMember] [DataContract] attributes in Entity Framework POCO Template

I would like some help adding in a POCO .tt Entity Framework template Attributes to support WCF serialization and if …

wcf c#-4.0 entity-framework-4 poco t4
Entity Framework - Eager loading related entities

I'm using Entity Framework 4 with MVC and need to ensure any referenced entities I want to use in my view …

.net entity-framework entity-framework-4 eager-loading
How to convert DbSet in Entity framework to ObjectQuery

I am using CodeFirst approach and struck with an issue where I need to convert DbSet to ObjectQuery. This is …

entity-framework-4 linq-to-entities ef-code-first dbcontext
Internal .NET Framework Data Provider error 1025

IQueryable<Organization> query = context.Organizations; Func<Reservation, bool> predicate = r => !r.IsDeleted; query.Select(o =&…

c# .net entity-framework entity-framework-4 expression-trees
Linq-to-Entities Include method not found

I am using EF4 within a MVC3 application and I was looking for a way to view all my contacts …

entity-framework-4 linq-to-entities