lixiaojun
2025-01-13 abf3ceabdd98abd0d955b03732e581a43c4e9fb0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
namespace Yw.BLL.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, Yw.Dto.SysUnitNameDto>();
 
            config.ForType<Yw.Dto.SysUnitNameValueSetter, Model.SysUnitNameValueSetter>();
 
            #endregion
 
            #region transfer
 
 
            config.ForType<Model.SysUnitTransfer, Yw.Dto.SysUnitTransferDto>();
 
            config.ForType<Yw.Dto.SysUnitTransferTypeSetter, Model.SysUnitTransferTypeSetter>();
 
            #endregion
 
 
        }
    }
}