NHibernate - map same entity to different tables within the same database?

The easiest way would be to have addresses and contacts mapped as composite elements. That way you could map your collection differently for employe and for employeinput since the mapping is owned by the container.

The easiest way would be to have addresses and contacts mapped as composite elements. That way you could map your collection differently for employe and for employeinput since the mapping is owned by the container. For exemple: public class Employe { public List Addresses{get; set;} } public class EmployeInput { public List Addresses{get; set;} } public class Address { public string Street{get;set;} public string City{get; set;} } Would have the folloying mapping.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions