Top "Entity-framework-5" questions

The ADO.

EntityFramework 5 use dll version 4.4.0.instead 5.0

I have project based on .NET 4.0 but I need to use EntityFramework 5 in my solution. So I install it from …

entity-framework-5 asp.net-4.5
Entity Framework: I set the foreign key, SaveChanges then access the navigation property, but it doesn't load the related entity. Why not?

I am using this Entity class with Entity Framework 5 Code First: public class Survey { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ID { …

ef-code-first lazy-loading entity-framework-5
How to get list of modified objects in Entity Framework 5

I'm binding list of entities to a data grid view like this: var orders = context.Order.ToList(); BindingList<Order&…

c# winforms entity-framework-5
Entity Framework 5.0 code-first with MySQL Connector 6.6.5.0 on .Net 4.5

For the life of me, I can't get my C# WinApp to work with Entity Framework 5.0 with a MySql database …

.net entity-framework entity-framework-5 .net-4.5 mysql-connector
How to set up LocalDb for unit tests in Visual Studio 2012 and Entity Framework 5

We have a Visual Studio 2012 ASP.NET MVC project using Entity Framework 5. There are some unit tests that depend on …

unit-testing mstest visual-studio-2012 entity-framework-5 localdb
The entity type [Name] is not part of the model for the current context

I create a model using EF and generated its context using DbContext 5.X generator. Now I renamed class name of …

c# entity-framework-5 poco database-first
Creating a LINQ Expression where parameter equals object

Given a primitive value age I know how to create an expression like this: //assuming: age is an int or …

c# linq entity-framework-5
How to use an existing enum with Entity Framework DB First

I am using Entity Framework 5, DB first. I know how to define an enum on my model, and set the …

c# entity-framework-5 ef-database-first
AddOrUpdate works not as expected and produces duplicates

I'm using Code-First DBContext-based EF5 setup. In DbMigrationsConfiguration.Seed I'm trying to fill DB with default dummy data. To accomplish …

c# entity-framework entity-framework-5 upsert