3
有了这2类为例:忽略导航属性时,映射Automapper
public class Product
{
public int Id {get; set;}
public int CategoryId {get; set;}
}
public class ProductDTO
{
public int Id {get; set;}
public int CategoryId {get; set;}
public Category Category {get; set;}
}
我怎能无视ProductDTO.Category
bidrectionally映射时?