Top "Entity-framework-4.1" questions

This tag is for the ADO.

Validation failed for one or more entities. See 'EntityValidationErrors' property for more details

I am having this error when seeding my database with code first approach. Validation failed for one or more entities. …

c# entity-framework entity-framework-4 entity-framework-4.1
Entity Framework Join 3 Tables

I'm trying to join three tables but I can't understand the method... I completed join 2 tables var entryPoint = dbContext.tbl_…

c# entity-framework entity-framework-4 entity-framework-5 entity-framework-4.1
Code-first vs Model/Database-first

What are the pros & cons of using Entity Framework 4.1 Code-first over Model/Database-first with EDMX diagram? I'm trying to …

entity-framework ef-code-first entity-framework-4.1 poco ef-database-first
Ignoring a class property in Entity Framework 4.1 Code First

My understanding is that the [NotMapped] attribute is not available until EF 5 which is currently in CTP so we cannot …

c# .net entity-framework ef-code-first entity-framework-4.1
How to pass parameters to the DbContext.Database.ExecuteSqlCommand method?

Let's just suppose I have a valid need for directly executing a sql command in Entity Framework. I am having …

entity-framework entity-framework-4.1
The relationship could not be changed because one or more of the foreign-key properties is non-nullable

I am getting this error when I GetById() on an entity and then set the collection of child entities to …

entity-framework entity-framework-4.1
Entity Framework Code First - two Foreign Keys from same table

I've just started using EF code first, so I'm a total beginner in this topic. I wanted to create relations …

c# entity-framework orm code-first entity-framework-4.1
How Should I Declare Foreign Key Relationships Using Code First Entity Framework (4.1) in MVC3?

I have been searching for resources on how to declare foreign key relationships and other constraints using code first EF 4.1 …

asp.net-mvc-3 ef-code-first entity-framework-4.1
The type or namespace name 'Entity' does not exist in the namespace 'System.Data'

I'm using WS class and it gave me error when I run the application: The type or namespace name 'Entity' …

c# asp.net .net web-services entity-framework-4.1
How to include a child object's child object in Entity Framework 5

I am using Entity Framework 5 code first and ASP.NET MVC 3. I am struggling to get a child object's child …

entity-framework entity-framework-4 entity-framework-5 entity-framework-4.1