public class a{
public int Id {get;set;}
public b ObjB{get;set;}
}
public class b{
public string Name {get;set;}
}
When i just tried to map with class A property
.Map(o => o.ObjB.Name, "Name")
then it is throwing below error
Expression 'o => o.ObjB.Name' must resolve to top-level member and not any child object's properties. You can use ForPath, a custom resolver on the child type or the AfterMap option instead. (Parameter 'lambdaExpression')'
Can you guys help me resolved this issue ?