I have models as below.
public class MainModel
{
    public object1 Property1{get; set;}
    public object2 Property2{get; set;}
    public object3 Property3{get; set;}
}
Public class object1{
    /// few properties;
}
Public class object2{
    /// few properties;
}
Public class object3{
    /// few properties;
}
Now how can I map these multiple objects to MainModel using AutoMapper?
 
     
    