File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/AbpCompanyName.AbpProjectName.Core Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 66using Abp . Zero . Configuration ;
77using AbpCompanyName . AbpProjectName . Authorization ;
88using AbpCompanyName . AbpProjectName . Authorization . Roles ;
9+ using AbpCompanyName . AbpProjectName . MultiTenancy ;
10+ using AbpCompanyName . AbpProjectName . Users ;
911
1012namespace AbpCompanyName . AbpProjectName
1113{
@@ -14,6 +16,11 @@ public class AbpProjectNameCoreModule : AbpModule
1416 {
1517 public override void PreInitialize ( )
1618 {
19+ //Declare entity types
20+ Configuration . Modules . Zero ( ) . EntityTypes . Tenant = typeof ( Tenant ) ;
21+ Configuration . Modules . Zero ( ) . EntityTypes . Role = typeof ( Role ) ;
22+ Configuration . Modules . Zero ( ) . EntityTypes . User = typeof ( User ) ;
23+
1724 //Remove the following line to disable multi-tenancy.
1825 Configuration . MultiTenancy . IsEnabled = true ;
1926
You can’t perform that action at this time.
0 commit comments