using AutoMapper; 对象相互赋值


CreateMap<CadNestParameter, FCadNestParameterDto>(MemberList.Source);

 

 

#region 程序集 AutoMapper, Version=9.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005
// C:\Users\win10-zhiyong\.nuget\packages\automapper\9.0.0\lib\netstandard2.0\AutoMapper.dll
#endregion

namespace AutoMapper
{
    //
    // 摘要:
    //     Member list to check for configuration validation
    public enum MemberList
    {
        //
        // 摘要:
        //     Check that all destination members are mapped
        Destination = 0,
        //
        // 摘要:
        //     Check that all source members are mapped
        Source = 1,
        //
        // 摘要:
        //     Check neither source nor destination members, skipping validation
        None = 2
    }
}

  

//
/ /摘要:
//检查是否映射了所有目标成员
目的地= 0,
//
/ /摘要:
//检查所有的源成员都被映射了
源= 1,
//
/ /摘要:
//既不检查源成员,也不检查目标成员,跳过验证
没有= 2

posted @ 2020-03-20 15:35  上帝视角  阅读(527)  评论(1编辑  收藏  举报