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.

MVC5: UserManager.AddToRole(): "Error Adding User to Role: UserId not found"?

I have been experimenting with MVC5/EF6 and trying out the new Identity Authentication with Code-First Migrations. Everything in the …

c# asp.net-mvc-5 entity-framework-6 asp.net-identity entity-framework-migrations
Oracle.ManagedDataAccess.EntityFramework - ORA-01918: user 'dbo' does not exist

I am trying to implemente code First Migrations with Oracle.ManagedDataAccess 6.121.1.0 provider, but with no success at all. As I …

oracle entity-framework code-first entity-framework-migrations odp.net
EF6 migrations (LocalDb) update-database login failed

VS 2013 MVC5 code first project. I’m working through the ASP.NET Getting Started with EF6 using MVC5 tutorial to …

entity-framework asp.net-mvc-5 entity-framework-migrations localdb
Code first migrations - how to display pending model changes?

I'm using code first migrations. Is there a way to display pending model changes in package manager console before I …

c# .net entity-framework-migrations
Is it possible to change the location of the EF Migrations "Migrations" folder?

By default, the add-migration command attempts to create the migration .cs file in Project Root Migrations I'd like to store …

entity-framework-4 entity-framework-migrations
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
Entity framework 4.3 run migrations at application start

What is the best way to execute all required db migrations at application start with EF 4.3?

.net entity-framework migration entity-framework-migrations entity-framework-4.3
How can I disable the use of the __MigrationHistory table in Entity Framework 4.3 Code First?

I'm using Entity Framework 4.3 Code First with a custom database initializer like this: public class MyContext : DbContext { public MyContext() { Database.…

ef-code-first entity-framework-4.3 entity-framework-migrations
Entity Framework 5 Nuget Console commands

So I am making a DB with EF 5 Code first, I have checked some guides and found some "important"/useful …

entity-framework command-line nuget entity-framework-migrations
Code First Migrations and initialization error

I'm unsure about how to use the code first migration feature. In my understanding it should create my database if …

c# ef-code-first sql-server-ce-4 entity-framework-migrations