Browse Source
Merge pull request #18580 from abpframework/issue/app-nolayers-blazor-bugs
app-nolayers blazor template bug fixed
pull/18584/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server.Mongo/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Program.cs
|
|
@ -40,11 +40,11 @@ public class Program |
|
|
builder.Host.AddAppSettingsSecretsJson() |
|
|
builder.Host.AddAppSettingsSecretsJson() |
|
|
.UseAutofac() |
|
|
.UseAutofac() |
|
|
.UseSerilog(); |
|
|
.UseSerilog(); |
|
|
await builder.AddApplicationAsync<MyProjectNameHostModule>(); |
|
|
|
|
|
if (IsMigrateDatabase(args)) |
|
|
if (IsMigrateDatabase(args)) |
|
|
{ |
|
|
{ |
|
|
builder.Services.AddDataMigrationEnvironment(); |
|
|
builder.Services.AddDataMigrationEnvironment(); |
|
|
} |
|
|
} |
|
|
|
|
|
await builder.AddApplicationAsync<MyProjectNameHostModule>(); |
|
|
var app = builder.Build(); |
|
|
var app = builder.Build(); |
|
|
await app.InitializeApplicationAsync(); |
|
|
await app.InitializeApplicationAsync(); |
|
|
|
|
|
|
|
|
|
|
|
@ -40,11 +40,11 @@ public class Program |
|
|
builder.Host.AddAppSettingsSecretsJson() |
|
|
builder.Host.AddAppSettingsSecretsJson() |
|
|
.UseAutofac() |
|
|
.UseAutofac() |
|
|
.UseSerilog(); |
|
|
.UseSerilog(); |
|
|
await builder.AddApplicationAsync<MyProjectNameHostModule>(); |
|
|
|
|
|
if (IsMigrateDatabase(args)) |
|
|
if (IsMigrateDatabase(args)) |
|
|
{ |
|
|
{ |
|
|
builder.Services.AddDataMigrationEnvironment(); |
|
|
builder.Services.AddDataMigrationEnvironment(); |
|
|
} |
|
|
} |
|
|
|
|
|
await builder.AddApplicationAsync<MyProjectNameHostModule>(); |
|
|
var app = builder.Build(); |
|
|
var app = builder.Build(); |
|
|
await app.InitializeApplicationAsync(); |
|
|
await app.InitializeApplicationAsync(); |
|
|
|
|
|
|
|
|
|