Skip to content

Commit

Permalink
fix: 修复模板
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Dec 21, 2024
1 parent 65663dd commit c4aafb3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
<None Remove="Logs\**"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Content Remove="$(UserProfile)\.nuget\packages\*\*\contentFiles\any\*\*.abppkg*.json"/>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public override void ConfigureServices(ServiceConfigurationContext context)
ConfigureLocalization();
ConfigureVirtualFileSystem(context);
ConfigurationMultiTenancy();
context.Services.AddAlwaysAllowAuthorization();
}

public override void OnApplicationInitialization(ApplicationInitializationContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ namespace MyCompanyName.MyProjectName.MyModuleName
typeof(AbpDddDomainModule),
typeof(MyModuleNameDomainSharedModule),
typeof(AbpCachingModule),
typeof(AbpAutoMapperModule),
typeof(AbpAutoMapperModule)
)]
public class MyModuleNameDomainModule : AbpModule
{

public override void ConfigureServices(ServiceConfigurationContext context)
{
// 配置automapper
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<MyModuleNameDomainModule>(validate: false);
});
}
}
}

0 comments on commit c4aafb3

Please sign in to comment.