Skip to content

Commit f50f57d

Browse files
committed
Added entity types.
1 parent 2a9f375 commit f50f57d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/AbpCompanyName.AbpProjectName.Core/AbpProjectNameCoreModule.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using Abp.Zero.Configuration;
77
using AbpCompanyName.AbpProjectName.Authorization;
88
using AbpCompanyName.AbpProjectName.Authorization.Roles;
9+
using AbpCompanyName.AbpProjectName.MultiTenancy;
10+
using AbpCompanyName.AbpProjectName.Users;
911

1012
namespace 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

0 commit comments

Comments
 (0)