Is there a way of writing an NHibernate mapping so that you can have an entity that is composed of fields from different DB tables?
For Example is I have a Person and Address table, I want address fields to appear in my person object.
I want an entity like this:
public class person
{
public virtual Guid Key{get; set;}
public virtual string Name {get; set;}
public virtual string Age {get; set;}
public virtual string Address1 {get; set;} //from address table
public virtual string Address2 {get; set;} //from address table
}