update tenantmanagement.application.contacts

pull/4861/head
Ahmet Çotur 5 years ago
parent 1bc084a6cb
commit b646388195

@ -1,5 +1,7 @@
using Volo.Abp.Application; using Volo.Abp.Application;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
using Volo.Abp.ObjectExtending;
using Volo.Abp.ObjectExtending.Modularity;
namespace Volo.Abp.TenantManagement namespace Volo.Abp.TenantManagement
{ {
@ -8,6 +10,16 @@ namespace Volo.Abp.TenantManagement
typeof(AbpTenantManagementDomainSharedModule))] typeof(AbpTenantManagementDomainSharedModule))]
public class AbpTenantManagementApplicationContractsModule : AbpModule public class AbpTenantManagementApplicationContractsModule : AbpModule
{ {
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) }
);
}
} }
} }

@ -9,5 +9,10 @@ namespace Volo.Abp.TenantManagement
[Required] [Required]
[DynamicStringLength(typeof(TenantConsts), nameof(TenantConsts.MaxNameLength))] [DynamicStringLength(typeof(TenantConsts), nameof(TenantConsts.MaxNameLength))]
public string Name { get; set; } public string Name { get; set; }
public TenantCreateOrUpdateDtoBase() : base(false)
{
}
} }
} }
Loading…
Cancel
Save