Top "Entity-framework-4.1" questions

This tag is for the ADO.

Convert DBContext to ObjectContext for use with GridView

I have a webforms project using EF codefirst to persist data. I'd like to use a GridView and EntityDataSource, in …

gridview entity-framework-4.1 ef-code-first entitydatasource
Entity Framework Code First Mapping Foreign Key Using Fluent API

I have the situation where a User can have several addresses. Accordingly, I have an ICollection on my user class. …

entity-framework ef-code-first entity-framework-4.1 fluent-interface
Entity Framework Code First and Connection String Issue

I am getting this error when using Entity Framework 4.1 code first. I can not find any sources of what exactly …

entity-framework entity-framework-4.1 ef-code-first connection-string
Entity Framework Database.SetInitializer simply not working

I am having this kind of "mysterious" issue here. I am currently using Entity Framework 4.1 Code First approach with my …

sql-server-2008 asp.net-mvc-3 entity-framework-4.1 ef-code-first code-first
Entity Framework Validation confusion - maximum string length of '128'

I'm faced with a confusing problem where in my Edit or Create action result methods, EF4 will throw a DbEntityValidationException …

entity-framework asp.net-mvc-3 entity-framework-4.1
Unit Testing DbContext

I've researched some information about techniques I could use to unit test a DbContext. I would like to add some …

unit-testing entity-framework-4.1
Entity Framework 4.1 Virtual Properties

If i have declared entity relationship in my model as virtual then there is no need to use the Include …

entity-framework-4.1
Generic Repository With EF 4.1 what is the point

As i dig deeper in to the DbContext, DbSet and associated interfaces, I am wondering why you would need to …

repository-pattern entity-framework-4.1 unit-of-work
Entity Framework 5 - DbContext Has Changes?

I'm trying to find a way to determine of any changes have been made to a database context (DbContext). Note: …

entity-framework entity-framework-4.1
How can I prevent EF "The context cannot be used while the model is being created" errors?

Looking at my Elmah error logs, I am seeing a few InvalidOperationExceptions from Entity Framework that deal with: The context …

c# entity-framework ef-code-first entity-framework-4.1