From 2d30749cff4e88f39e4c10c11f64ee9d1d85cff4 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Thu, 28 Aug 2025 11:54:33 +0300 Subject: [PATCH] Refactor tenant create mapper to use CreateModalModel Renamed TenantInfoModelToTenantCreateDtoMapper to CreateTenantInfoModelToTenantCreateDtoMapper and updated all method signatures to use CreateModalModel.TenantInfoModel instead of EditModalModel.TenantInfoModel. This clarifies the mapper's purpose and aligns it with the correct model context. --- .../AbpTenantManagementWebMapperlyMappers.cs | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebMapperlyMappers.cs b/modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebMapperlyMappers.cs index 7b6f3d389d..4ff9739146 100644 --- a/modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebMapperlyMappers.cs +++ b/modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebMapperlyMappers.cs @@ -19,24 +19,16 @@ public partial class TenantDtoToTenantInfoModelMapper } [Mapper] -public partial class TenantInfoModelToTenantCreateDtoMapper - : TwoWayMapperBase +public partial class CreateTenantInfoModelToTenantCreateDtoMapper + : TwoWayMapperBase { - [MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.Id))] - [MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.ConcurrencyStamp))] - [MapperIgnoreTarget(nameof(TenantCreateDto.AdminEmailAddress))] - [MapperIgnoreTarget(nameof(TenantCreateDto.AdminPassword))] - public override partial TenantCreateDto Map(EditModalModel.TenantInfoModel source); + public override partial TenantCreateDto Map(CreateModalModel.TenantInfoModel source); - [MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.Id))] - [MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.ConcurrencyStamp))] - [MapperIgnoreTarget(nameof(TenantCreateDto.AdminEmailAddress))] - [MapperIgnoreTarget(nameof(TenantCreateDto.AdminPassword))] - public override partial void Map(EditModalModel.TenantInfoModel source, TenantCreateDto destination); + public override partial void Map(CreateModalModel.TenantInfoModel source, TenantCreateDto destination); - public override partial EditModalModel.TenantInfoModel ReverseMap(TenantCreateDto source); + public override partial CreateModalModel.TenantInfoModel ReverseMap(TenantCreateDto source); - public override partial void ReverseMap(TenantCreateDto source, EditModalModel.TenantInfoModel destination); + public override partial void ReverseMap(TenantCreateDto source, CreateModalModel.TenantInfoModel destination); } [Mapper]