# cd wwwroot
# ls
_content 'favicon copy.ico.gz' favicon.ico.gz global-scripts.js.gz global-styles.css.gz Loda.Platform.Blazor.styles.css
'favicon copy.ico' favicon.ico global-scripts.js global-styles.css images Loda.Platform.Blazor.styles.css.br
'favicon copy.ico.br' favicon.ico.br global-scripts.js.br global-styles.css.br libs Loda.Platform.Blazor.styles.css.gz
#
先前我也是用mardown的语法三个波浪加三个波浪,竟然触发了cloudfare的拦截,说我被blocked了。。。
现在是ABP的警告框。
但是我刚刚给你发的邮件,被退回来啦
我要在markdown编辑器里发3个代码块,被阻止了。所以我给maliming@abp.io发了个邮件。
Okay, I will wait the version. Can you return the ticket to me?
I have read the post. May I wait the next ABP version to fix the bug?
I can give you a database connection string with email. You can create a empty ABP application with Blazor Server page. Then you can change the database connection string.
Oh, after I run the dotnet ef migrations add... The problem has been resolved.
I am very practices with ef core migrations.
Perhaps I missed any module or fuction call?
[ReplaceDbContext(typeof(IIdentityProDbContext))]
[ReplaceDbContext(typeof(ISaasDbContext))]
[ConnectionStringName("Default")]
public class BlazorOneDbContext :
AbpDbContext<BlazorOneDbContext>,
IIdentityProDbContext,
ISaasDbContext
{
/* Add DbSet properties for your Aggregate Roots / Entities here. */
#region Entities from the modules
/* Notice: We only implemented IIdentityProDbContext and ISaasDbContext
* and replaced them for this DbContext. This allows you to perform JOIN
* queries for the entities of these modules over the repositories easily. You
* typically don't need that for other modules. But, if you need, you can
* implement the DbContext interface of the needed module and use ReplaceDbContext
* attribute just like IIdentityProDbContext and ISaasDbContext.
*
* More info: Replacing a DbContext of a module ensures that the related module
* uses this DbContext on runtime. Otherwise, it will use its own DbContext class.
*/
// Identity
public DbSet<IdentityUser> Users { get; set; }
public DbSet<IdentityRole> Roles { get; set; }
public DbSet<IdentitySession> Sessions { get; set; }
public DbSet<IdentityClaimType> ClaimTypes { get; set; }
public DbSet<OrganizationUnit> OrganizationUnits { get; set; }
public DbSet<IdentitySecurityLog> SecurityLogs { get; set; }
public DbSet<IdentityLinkUser> LinkUsers { get; set; }
public DbSet<IdentityUserDelegation> UserDelegations { get; }
// SaaS
public DbSet<Tenant> Tenants { get; set; }
public DbSet<Edition> Editions { get; set; }
public DbSet<TenantConnectionString> TenantConnectionStrings { get; set; }
#endregion
public BlazorOneDbContext(DbContextOptions<BlazorOneDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
/* Include modules to your migration db context */
builder.ConfigurePermissionManagement();
builder.ConfigureSettingManagement();
builder.ConfigureBackgroundJobs();
builder.ConfigureAuditLogging();
builder.ConfigureIdentityPro();
builder.ConfigureOpenIddict();
builder.ConfigureFeatureManagement();
builder.ConfigureLanguageManagement();
builder.ConfigureSaas();
builder.ConfigureTextTemplateManagement();
builder.ConfigureBlobStoring();
builder.ConfigureGdpr();
~~~