0
如何将我的DTO映射到我的视图模型,了解以下内容:automapper DTO到视图模型
我的DTO:
public class SomeClass
{
public int myProperty{get; set;}
}
我的视图模型:
public class MyViewModel
{
public SomeClass theDto {get; set;}
public int someExtraProperty
}
所以,我的视图模型包含我的dto +其他属性。我怎样才能轻松映射dto对象?