WangJunZzz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
9 additions and
7 deletions
-
templates/pro-module/Directory.Build.targets
-
templates/pro-module/host/MyCompanyName.MyProjectName.MyModuleName.HttpApi.Host/MyModuleNameHttpApiHostModule.cs
-
templates/pro-nuget/service/Directory.Build.targets
-
templates/pro-nuget/service/MyCompanyName.MyProjectName.sln
-
templates/pro-nuget/service/src/MyCompanyName.MyProjectName.EntityFrameworkCore/EntityFrameworkCore/MyProjectNameEntityFrameworkCoreModule.cs
|
|
|
@ -2,7 +2,8 @@ |
|
|
|
|
|
|
|
<Import Project="Directory.Build.Microsoft.targets"/> |
|
|
|
<Import Project="Directory.Build.Volo.targets"/> |
|
|
|
|
|
|
|
<Import Project="Directory.Build.Lion.targets"/> |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<LangVersion>latest</LangVersion> |
|
|
|
<Version>1.0.0</Version> |
|
|
|
|
|
|
|
@ -170,7 +170,7 @@ namespace MyCompanyName.MyProjectName.MyModuleName |
|
|
|
|
|
|
|
private void ConfigureDB() |
|
|
|
{ |
|
|
|
Configure<AbpDbContextOptions>(options => { options.UseMySQL(); }); |
|
|
|
Configure<AbpDbContextOptions>(options => { options.UseMySQL(builder => { builder.TranslateParameterizedCollectionsToConstants(); }); }); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -2,7 +2,8 @@ |
|
|
|
|
|
|
|
<Import Project="Directory.Build.Microsoft.targets"/> |
|
|
|
<Import Project="Directory.Build.Volo.targets"/> |
|
|
|
|
|
|
|
<Import Project="Directory.Build.Lion.targets"/> |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<LangVersion>latest</LangVersion> |
|
|
|
<Version>1.0.0</Version> |
|
|
|
|
|
|
|
@ -34,7 +34,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyCompanyName.MyProjectName |
|
|
|
EndProject |
|
|
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "0.Solution Items", "0.Solution Items", "{2C4A6DB8-8D9E-42E6-B7C3-1EDB7B3DE22E}" |
|
|
|
ProjectSection(SolutionItems) = preProject |
|
|
|
global.json = global.json |
|
|
|
NuGet.Config = NuGet.Config |
|
|
|
Directory.Build.Microsoft.targets = Directory.Build.Microsoft.targets |
|
|
|
Directory.Build.targets = Directory.Build.targets |
|
|
|
|
|
|
|
@ -31,9 +31,10 @@ namespace MyCompanyName.MyProjectName.EntityFrameworkCore |
|
|
|
}); |
|
|
|
Configure<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
/* The main point to change your DBMS. |
|
|
|
* See also MyProjectNameMigrationsDbContextFactory for EF Core tooling. */ |
|
|
|
options.UseMySQL(); |
|
|
|
options.UseMySQL(builder => |
|
|
|
{ |
|
|
|
builder.TranslateParameterizedCollectionsToConstants(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|