-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a more complete guide to porting from EF6 #1180
Comments
@ajcvickers, @maumar, @smitpatel, guys as you've been so helpful with my migration to ef core I'd be happy to contribute here and write some documentation. I'll write up all of the migration steps I have been through, as soon as I'm finished with the migration itself. |
Just came across this post while looking to implement Alternate Keys in an existing EF 6 application. I haven't been able to find much information on moving from EF 6 to EF Core though. I'd like to be on the latest version of EF, however, I'm concerned with how porting to EF Core will impact our existing application, model and data. Any helpful insight would be greatly appreciated by anyone who has ported an existing application. Thanks! |
@MrJinx Useful info in the video: https://channel9.msdn.com/Shows/On-NET/Migrating-from-Entity-Framework-6-to-Core |
Thanks Erik! I'll definitely check it out. |
These are some raw materials to help us add to the documentation: Besides the video referenced by @ErikEJ above (https://channel9.msdn.com/Shows/On-NET/Migrating-from-Entity-Framework-6-to-Core) I did another video about migrating when you have an EDMX file. I will find out where it is. Here is some notes from recent migration exercises I was involved in: Phase 1: Changing references and getting the code to compile again
Phase 2: Getting things to run
foreach (var entityType in modelBuilder.Model.GetEntityTypes())
{
modelBuilder.Entity(entityType.Name).ToTable(entityType.ClrType.Name);
}
Phase 3: Target .NET Standard 2.0 or .NET Core 3.0
|
Moving from EF6 to EF Core must be considered a porting exercise, rather than a version upgrade, since they are different code bases with different functionality. We should provide more details on this porting and common things that people hit. See dotnet/efcore#14130
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: