-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Consider to remove EntityFrameworkCore.DbMigrations project from the solution #8776
Comments
|
Hi,
|
hikalkan
changed the title
Consider to remove EntityFramework.DbMigrations project from the solution
Consider to remove EntityFrameworkCore.DbMigrations project from the solution
May 17, 2021
I've written an article to show how this can be done for existing solutions: https://community.abp.io/articles/unifying-dbcontexts-for-ef-core-removing-the-ef-core-migrations-project-nsyhrtna |
When will 4.4 be released? |
found it. July 1. |
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of a separate migration dbcontext, we can use application's dbcontext. This simplifies database mappings and migrations, especially when you want to setup relations to entities coming from modules. I see some developers found the current structure complicated.
One disadvantage is that we should remove the AppUser in the solution and use IdentityUser entity (coming from the Identity module) when we need users in our code. So, we can't add new type-safe properties to this entity. However, module extensibility system already provides an easy way to add extra properties to existing entities.
Making that change is easy actually, but we should update all tutorials, documents, tooling, etc.
The text was updated successfully, but these errors were encountered: