Skip to content
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

MultiDbContext does not work with the Migrator project #6949

Open
quocduong opened this issue May 6, 2024 · 0 comments
Open

MultiDbContext does not work with the Migrator project #6949

quocduong opened this issue May 6, 2024 · 0 comments
Milestone

Comments

@quocduong
Copy link

quocduong commented May 6, 2024

Dear guys,

I already setup multiple DbContext based on this guide: https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/MultipleDbContextEfCoreDemo

It's working well with migration commands but an error occurred when running with ProjectName.Migrator project

In MultiTenantMigrateExecuter.cs I have injected SecondMigrator, call CreateOrMigrateForHost() method with the second DbContext.

So you can add more code in above sample code to support the Migrator project also?

How to reproduce:

  • Run the Migrator to create databases
  • Change table name in the second DbContext then run the Migrator
  • Your Abp package version: 13.0.0
  • Your base framework: .Net Core.

Many thanks.

@ismcagdas ismcagdas added this to the v9.4 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants