Skip to content

Commit 2d30749

Browse files
committed
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.
1 parent a0551df commit 2d30749

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebMapperlyMappers.cs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,16 @@ public partial class TenantDtoToTenantInfoModelMapper
1919
}
2020

2121
[Mapper]
22-
public partial class TenantInfoModelToTenantCreateDtoMapper
23-
: TwoWayMapperBase<EditModalModel.TenantInfoModel, TenantCreateDto>
22+
public partial class CreateTenantInfoModelToTenantCreateDtoMapper
23+
: TwoWayMapperBase<CreateModalModel.TenantInfoModel, TenantCreateDto>
2424
{
25-
[MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.Id))]
26-
[MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.ConcurrencyStamp))]
27-
[MapperIgnoreTarget(nameof(TenantCreateDto.AdminEmailAddress))]
28-
[MapperIgnoreTarget(nameof(TenantCreateDto.AdminPassword))]
29-
public override partial TenantCreateDto Map(EditModalModel.TenantInfoModel source);
25+
public override partial TenantCreateDto Map(CreateModalModel.TenantInfoModel source);
3026

31-
[MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.Id))]
32-
[MapperIgnoreSource(nameof(EditModalModel.TenantInfoModel.ConcurrencyStamp))]
33-
[MapperIgnoreTarget(nameof(TenantCreateDto.AdminEmailAddress))]
34-
[MapperIgnoreTarget(nameof(TenantCreateDto.AdminPassword))]
35-
public override partial void Map(EditModalModel.TenantInfoModel source, TenantCreateDto destination);
27+
public override partial void Map(CreateModalModel.TenantInfoModel source, TenantCreateDto destination);
3628

37-
public override partial EditModalModel.TenantInfoModel ReverseMap(TenantCreateDto source);
29+
public override partial CreateModalModel.TenantInfoModel ReverseMap(TenantCreateDto source);
3830

39-
public override partial void ReverseMap(TenantCreateDto source, EditModalModel.TenantInfoModel destination);
31+
public override partial void ReverseMap(TenantCreateDto source, CreateModalModel.TenantInfoModel destination);
4032
}
4133

4234
[Mapper]

0 commit comments

Comments
 (0)