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.

Downgrade (Rollback) Database with code-first in production environment

I have a web application that I install on my customers' computers for their inner use. I use C# MVC5 …

c# ef-code-first entity-framework-migrations downgrade
What is the correct format for Running Entity Framework migrate.exe tool without a Web/App.config?

We recently switched to Entity Framework data migrations and I am working on some build automation scripts for our MVC …

.net entity-framework-4 connection-string entity-framework-migrations
Rider. EF Code First Migrations

Is there an easy way to scaffold migrations using old EF outside of Visual Studio? I would like to do …

entity-framework entity-framework-migrations rider
Script EF migration seed from Configuration class

I have EF migrations working nicely, but I also want to generate the sql script for the seed data from …

entity-framework entity-framework-migrations
Update-Database fails due to Pending Changes, but Add-Migration Creates a Duplicate Migration

I'm working with Entity Framework 5.0 Code First Migrations, and am having a problem with running Update-Database. It says there are …

c# entity-framework entity-framework-migrations
Can one set a breakpoint in EF code first migrations seed method?

I am having trouble with something in the Seed method in the Configure.cs for my entity framework 6 code-first migration …

c# asp.net entity-framework ef-code-first entity-framework-migrations
EF 5 Migrations cannot connect to our database even though it does just fine at runtime

We have three projects. Company.Domain (class library) Company.PublicWebsite (MVC3 Web Application) Company.InternalWebsite (MVC3 Web Application) The two …

c# entity-framework ef-code-first entity-framework-5 entity-framework-migrations
Entity Framework Data Annotations equivalent of .WillCascadeOnDelete(false);

I'm currently using EF Code First 4.3 with migrations enabled, but automatic migrations disabled. My question is simple, is there a …

data-annotations entity-framework-4.3 entity-framework-migrations
Consolidating EF migrations into new InitialCreate

I have been using EF migrations for some time now and have more than 100 migration files in my project. I …

entity-framework entity-framework-5 entity-framework-migrations
EF6, Code-First, enable-migrations, "Unable to load the specified metadata resource"

I have created a C# class library with 3 entity classes and a DbContext for code-first generation of database. All has …

entity-framework code-first entity-framework-migrations entity-framework-6