Top "Entity-framework-4" questions

A tag for ADO.

Clean way to deal with circular references in EF?

Say I have this table structure: Client ----------- ClientId int not null (identity) CurrentDemographicId int null (FK to ClientDemographic) OtherClientFields …

c# entity-framework entity-framework-4 circular-dependency
What the purpose of OnModelCreating in EF4 Code-First?

I was curious about what the purpose of OnModelCreating in EF4 Code-First context class? How does it work?

entity-framework entity-framework-4 code-first
How not persist property EF4 code first?

How do I make non persisted properties using codefirst EF4? MS says there is a StoreIgnore Attribute, but I cannot …

c# .net entity-framework entity-framework-4 ef4-code-only
EntityFunctions.TruncateTime and unit tests

I'm using System.Data.Objects.EntityFunctions.TruncateTime method to get date part of a datetime in my query: if (searchOptions.…

entity-framework unit-testing entity-framework-4 stub
seed method not called with EntityFramework CodeFirst

I've been struggling on and off with this problem since 4.1 (now I'm on 4.3). It seems to me that to get …

entity-framework entity-framework-4 ef-code-first code-first
Is it possible to change the location of the EF Migrations "Migrations" folder?

By default, the add-migration command attempts to create the migration .cs file in Project Root Migrations I'd like to store …

entity-framework-4 entity-framework-migrations
EF: Lazy loading, eager loading, and "enumerating the enumerable"

I find I'm confused about lazy loading, etc. First, are these two statements equivalent: (1) Lazy loading: _flaggedDates = context.FlaggedDates.Include("…

entity-framework entity-framework-4 lazy-loading eager-loading
Entity Framework - Entity read-only property mapped to a column of related table

I have interesting problem to solve but, although common, it looks like it's not easily achievable with Entity Framework. There …

entity-framework entity-framework-4 ef-database-first
Repository Pattern in Entity framework 4 when should we dispose?

New to EF and I have noticed that using a repository pattern can really simplify things and will allow me …

entity-framework-4 repository-pattern
Problem in mapping fragments in Entity Framework

I am using entity framework and I ran into an odd build error. I am building a forum and I …

entity-framework entity-framework-4 entity-relationship entity-framework-designer