I am calling a stored proc using SqlQuery, the result is supposed to be a graph of objects, i.e.
public class Person
{
public int Id{get;set;}
public string FullName {get;set;}
public Address HomeAddress {get;set;}
public Vehicle PrivateVehicle {get;set;}
}
But SqlQuery wont map the Address and Vehicle. It only maps the column names to the properties.
Is there a work around this? How else can I do the mapping?
.. what you can't do is return graphs of objects, e.g. entities that contain properties of complex types.