mirror of https://github.com/abpframework/abp.git
Browse Source
Replaced AutoMapper usage with Mapperly in tenant management and MVC template modules. Removed obsolete AutoMapper mapping profile, updated project references and module dependencies, and refactored mapping configuration methods to use Mapperly.pull/23623/head
5 changed files with 14 additions and 72 deletions
@ -1,36 +0,0 @@ |
|||
// using AutoMapper;
|
|||
using Volo.Abp.Data; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace Volo.Abp.TenantManagement; |
|||
|
|||
public class AbpTenantManagementDomainMappingProfile //: Profile
|
|||
{ |
|||
public AbpTenantManagementDomainMappingProfile() |
|||
{ |
|||
// CreateMap<Tenant, TenantConfiguration>()
|
|||
// .ForMember(ti => ti.ConnectionStrings, opts =>
|
|||
// {
|
|||
// opts.MapFrom((tenant, ti) =>
|
|||
// {
|
|||
// var connStrings = new ConnectionStrings();
|
|||
|
|||
// if (tenant.ConnectionStrings == null)
|
|||
// {
|
|||
// return connStrings;
|
|||
// }
|
|||
|
|||
// foreach (var connectionString in tenant.ConnectionStrings)
|
|||
// {
|
|||
// connStrings[connectionString.Name] = connectionString.Value;
|
|||
// }
|
|||
|
|||
// return connStrings;
|
|||
// });
|
|||
// })
|
|||
// .ForMember(x => x.IsActive, x => x.Ignore())
|
|||
// .ForMember(x => x.EditionId, x => x.Ignore());
|
|||
|
|||
// CreateMap<Tenant, TenantEto>();
|
|||
} |
|||
} |
|||
Loading…
Reference in new issue