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