public override void PostConfigureServices(ServiceConfigurationContext context)
        {
            ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToApi(
                SaasModuleExtensionConsts.ModuleName,
                SaasModuleExtensionConsts.EntityNames.Tenant,
                new Type[]
            {
                typeof(SaasTenantDto)
            },
                new Type[]
            {
                typeof(SaasTenantCreateDto)
            },
                new Type[]
            {
                typeof(SaasTenantUpdateDto)
            });

            ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToApi(
                SaasModuleExtensionConsts.ModuleName,
                SaasModuleExtensionConsts.EntityNames.Edition,
                new Type[]
            {
                typeof(EditionDto)
            },
                new Type[]
            {
                typeof(EditionCreateDto)
            },
                new Type[]
            {
                typeof(EditionUpdateDto)
            });
        }
 public override void PostConfigureServices(ServiceConfigurationContext context)
 {
     ModuleExtensionConfigurationHelper
     .ApplyEntityConfigurationToApi(
         TenantManagementModuleExtensionConsts.ModuleName,
         TenantManagementModuleExtensionConsts.EntityNames.Tenant,
         getApiTypes: new[] { typeof(TenantDto) },
         createApiTypes: new[] { typeof(TenantCreateDto) },
         updateApiTypes: new[] { typeof(TenantUpdateDto) }
         );
 }
Esempio n. 3
0
        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            HelloAbpDtoExtensions.Configure();

            ModuleExtensionConfigurationHelper
            .ApplyEntityConfigurationToApi(
                IdentityModuleExtensionConsts.ModuleName,
                IdentityModuleExtensionConsts.EntityNames.OrganizationUnit,
                getApiTypes: new[] { typeof(OrganizationUnitDto) },
                createApiTypes: new[] { typeof(OrganizationUnitCreateDto) },
                updateApiTypes: new[] { typeof(OrganizationUnitUpdateDto) }
                );
        }
Esempio n. 4
0
        public override void PostConfigureServices(ServiceConfigurationContext context)
        {
            ModuleExtensionConfigurationHelper
            .ApplyEntityConfigurationToApi(
                IdentityModuleExtensionConsts.ModuleName,
                IdentityModuleExtensionConsts.EntityNames.Role,
                getApiTypes: new[] { typeof(IdentityRoleDto) },
                createApiTypes: new[] { typeof(IdentityRoleCreateDto) },
                updateApiTypes: new[] { typeof(IdentityRoleUpdateDto) }
                );

            ModuleExtensionConfigurationHelper
            .ApplyEntityConfigurationToApi(
                IdentityModuleExtensionConsts.ModuleName,
                IdentityModuleExtensionConsts.EntityNames.User,
                getApiTypes: new[] { typeof(IdentityUserDto) },
                createApiTypes: new[] { typeof(IdentityUserCreateDto) },
                updateApiTypes: new[] { typeof(IdentityUserUpdateDto) }
                );
        }