We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In some cases, module extension methods (example) needs to know the actual database provider being used.
Until now, we provided an option on the extension method call:
builder.ConfigureIdentityServer(options => { options.DatabaseProvider = EfCoreDatabaseProvider.MySql; });
No need to this anymore. ABP Framework automatically determines the provider and sets it on the modelbuilder
abp/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs
Lines 113 to 145 in 6d7b49d
Module extension methods can get it like modelBuilder.IsUsingMySQL()
modelBuilder.IsUsingMySQL()
If it can't determine automatically, you can still call it like modelBuilder.UseMySql(); in the OnModelCreating of your DbContext that overrides it.
modelBuilder.UseMySql();
OnModelCreating
So, no need to set it for every module. I marked the DatabaseProvider option of the ConfigureIdentityServer as obsolete.
DatabaseProvider
ConfigureIdentityServer
The text was updated successfully, but these errors were encountered:
hikalkan
No branches or pull requests
In some cases, module extension methods (example) needs to know the actual database provider being used.
Until now, we provided an option on the extension method call:
No need to this anymore. ABP Framework automatically determines the provider and sets it on the modelbuilder
abp/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs
Lines 113 to 145 in 6d7b49d
Module extension methods can get it like
modelBuilder.IsUsingMySQL()
If it can't determine automatically, you can still call it like
modelBuilder.UseMySql();
in theOnModelCreating
of your DbContext that overrides it.So, no need to set it for every module. I marked the
DatabaseProvider
option of theConfigureIdentityServer
as obsolete.The text was updated successfully, but these errors were encountered: