Top "Entity-framework-5" questions

The ADO.

EF5 Code First Enums and Lookup Tables

I'd like to define an enum for EF5 to use, and a corresponding lookup table. I know EF5 now supports …

entity-framework ef-code-first entity-framework-5
Where is the ExecuteStoreCommand method in Entity Framework 5?

I'm using EF5 in VS2012, and I trying to delete all data of some table using ExecuteStoreCommand, something like this: …

c# entity-framework visual-studio-2012 entity-framework-5
Is it possible to query Entity Framework before calling DbContext.SaveChanges?

In this simple example, I have two entities: Event and Address. I have a console application running every night to …

c# entity-framework entity-framework-5 dbcontext savechanges
How to switch to datetime2 in Entity Framework / SQL Server 2008 project

We have an Entity Framework 5.0 project with code-first migrations with SQL Server 2008 but all date properties were created in the …

.net sql-server entity-framework-5 entity-framework-migrations
EF: How do I call SaveChanges twice inside a transaction?

Using Entity Framework (code first in my case), I have an operation that requires me to call SaveChanges to update …

entity-framework sql-server-2012 transactionscope entity-framework-5 msdtc
Does Entity Framework 5 support unique constraints?

Wondering if Entity Framework 5 supports unique constraints on entity properties? If so, how can I specify that a property should …

unique-constraint .net-4.5 entity-framework-5
Create new parent and child on the same page

My MVC application has a classic parent-child (master-detail) relations. I want to have a single page that create both the …

asp.net-mvc entity-framework asp.net-mvc-4 entity-framework-5 master-detail
Entity Framework 5.0 PostgreSQL (Npgsql) default connection factory

I'm trying to get EF 5.0 code first working with PostgreSQL (Npgsql provider). I have Npgsql 2.0.12.1 installed via NuGet (referenced assembly …

c# .net database entity-framework-5 postgresql-9.2
Delete parent with children in one to many relationship

I have a .NET4.0 application with Entity Framework 5.0 e Sql Server CE 4.0. I have two entities with a one to …

entity-framework .net-4.0 sql-server-ce entity-framework-5
Automate EF-Migrations "Update-Database -Script"

I'm using EF migrations to track changes to our EF code-first DB model. Now I need to generate one SQL-Script …

c# entity-framework powershell entity-framework-5 entity-framework-migrations