namespace Yw.Application.Unit
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class Mapper : IRegister
|
{
|
/// <summary>
|
///
|
/// </summary>
|
/// <param name="config"></param>
|
public void Register(TypeAdapterConfig config)
|
{
|
#region 1-lang
|
|
config.ForType<AddSysUnitLangInput, Model.SysUnitLang>();
|
|
config.ForType<UpdateSysUnitLangInput, Model.SysUnitLang>();
|
|
config.ForType<Model.SysUnitLang, SysUnitLangDto>();
|
|
#endregion
|
|
#region 2-type
|
|
config.ForType<AddSysUnitTypeInput, Model.SysUnitType>();
|
|
config.ForType<UpdateSysUnitTypeInput, Model.SysUnitType>();
|
|
config.ForType<Model.SysUnitType, SysUnitTypeDto>();
|
|
#endregion
|
|
#region 3-value
|
|
config.ForType<AddSysUnitValueInput, Model.SysUnitValue>();
|
|
config.ForType<UpdateSysUnitValueInput, Model.SysUnitValue>();
|
|
config.ForType<Model.SysUnitValue, SysUnitValueDto>();
|
|
#endregion
|
|
#region 4-name
|
|
config.ForType<Model.SysUnitName, SysUnitNameDto>();
|
|
config.ForType<SysUnitNameValueSetter, Model.SysUnitNameValueSetter>();
|
|
#endregion
|
|
#region 5-transfer
|
|
|
config.ForType<Model.SysUnitTransfer, SysUnitTransferDto>();
|
|
config.ForType<SysUnitTransferTypeSetter, Model.SysUnitTransferTypeSetter>();
|
|
#endregion
|
|
|
}
|
}
|
}
|