-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support for Multiple Db Context per project #27
Comments
Hi,
|
@iyhammad in order to align with how the EFCore tool is doing this: if there are more than one |
@mrahhal Specifying the context's name while doing these commands would be nice. It will be great to have this feature. |
Alright then. I'll let you know here when I do an update (most likely today). |
Resolved in 4aa9726. Unfortunately you'll still need to hand edit the scaffolded migration file to change the namespace. But this will do for now to unblock those who're using multiple |
Hi,
I'm trying to use the tool to generate Migrations for EF 6 in ASPNET Core Application. I've 2 separate Db Contexts. and below is my Folder Structure
-----MyApp.Data
---------Migrations
-------------Host
------------------HostMigrationConfigurations.cs
-------------Tenants
------------------TenantsMigrationsConfiguration.s
There are 2 issues I face in this scenario
dotnet ef migrations add --output-dir "Migrations/Host" "V0-0-0-22"
It Creates the Migration but with wrong namespace (Tenants namespace)
dotnet ef database update
It doesn't run the migrations on both dbcontexts.
Thanks,
The text was updated successfully, but these errors were encountered: