Top "Entity-framework-migrations" questions

Migrations is a feature of Entity Framework that provides for detecting changes to a code(or database)-first model, and upgrading the database (or the model) schema based on those changes.

EF Migrations: Rollback last applied migration?

This looks like a really common task, but I can't find an easy way to do it. I want to …

entity-framework entity-framework-4 database-migration entity-framework-migrations
Reset Entity-Framework Migrations

I've mucked up my migrations, I used IgnoreChanges on the initial migration, but now I want to delete all my …

entity-framework database-migration entity-framework-migrations
There is already an object named in the database

Update-Database failed from Package Manager Console. I've used Entity Framework 6.x and code-first approach. Error is "There is already an …

database entity-framework ef-code-first entity-framework-6 entity-framework-migrations
Entity Framework code-first: migration fails with update-database, forces unneccessary(?) add-migration

I have a funny effect using migration (EF 5.0) and code-first: I created some models with GUID primary keys. (BTW: It …

entity-framework entity-framework-migrations
How can I make my string property nullable?

I want to make the Middle Name of person optional. I have been using C#.net code first approach. For …

c# asp.net-mvc entity-framework entity-framework-migrations
EF 5 Enable-Migrations : No context type was found in the assembly

I have 4 projects : Toombu.Entities : all models are there Toombu.DataAccess: Mapping, Repository and ToombuContext Toombu.Logique : Logic of my …

c# entity-framework asp.net-mvc-4 entity-framework-migrations
Unable to generate an explicit migration in entity framework

I am adding a new migration but this message shows: Unable to generate an explicit migration because the following explicit …

entity-framework entity-framework-migrations
Generate full SQL script from EF 5 Code First Migrations

How do I use Entity Framework 5 Code First Migrations to create a full database script from the initial (empty) state …

entity-framework entity-framework-migrations
How to delete and recreate from scratch an existing EF Code First database

I am using EF Code First with EF 5 in VS 2012. I use PM update-database command and I have a simple …

ef-code-first entity-framework-migrations