Upgrade from Entity Framework 6 to EF Core

asp.net-core, entity-framework, entity-framework-core

Solution

There isn't really a way to do this yet. In general we strongly recommend against trying to upgrade an EF6 application to EF7 yet. EF7 is still very much pre-release.

We will have some guidance on how to do this when we get closer to RTM. We may provide some tools to help or just some guidance on how to do it.

Problem

I'm trying to move an ASP.NET MVC 5 application to MVC 6 (ASP.NET vNext). My existing application uses EF 6 and has some EF code first migrations. I want to port these migrations as well, because I want to be able to continue using the existing databases with the existing migrations already applied, without breaking the upgrade path. It seems that the "new" EF Core migrations (`k ef migration add ...`) have quite the different format compared to the "old" EF 6 migrations: - No more Designer partial class - No more RESX file Is there already an "official" way to upgrade these migrations? Is it supported at all? Will it be supported in the future?

Original source