A better way to use AutoMapper to flatten nested objects?

前端 未结 7 1706
执笔经年
执笔经年 2020-12-28 15:02

I have been flattening domain objects into DTOs as shown in the example below:

public class Root
{
    public string AParentProperty { get; set; }
    public         


        
7条回答
  •  轮回少年
    2020-12-28 15:38

    I created a simple example using AutoMappers new naming convention rules to map from flattened to nested objects, hope this helps

    https://dotnetfiddle.net/i55UFK

提交回复
热议问题