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映射時?