Define TenantEto

pull/3032/head
Halil İbrahim Kalkan 5 years ago
parent a9060c3d10
commit 74e3e9637a

@ -0,0 +1,12 @@
using System;
namespace Volo.Abp.TenantManagement
{
[Serializable]
public class TenantEto
{
public Guid Id { get; set; }
public string Name { get; set; }
}
}

@ -2,6 +2,7 @@
using Volo.Abp.AutoMapper;
using Volo.Abp.Data;
using Volo.Abp.Domain;
using Volo.Abp.EventBus.Distributed;
using Volo.Abp.Modularity;
using Volo.Abp.MultiTenancy;
using Volo.Abp.UI;
@ -19,10 +20,16 @@ namespace Volo.Abp.TenantManagement
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<AbpTenantManagementDomainModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddProfile<AbpTenantManagementDomainMappingProfile>(validate: true);
});
Configure<AbpDistributedEventBusOptions>(options =>
{
options.EtoMappings.Add<Tenant, TenantEto>();
});
}
}
}

Loading…
Cancel
Save