Fluent NHibernate join table mapping?

This answer assumes you have functional Address, Person, Type, and PersonAddress objects. Public class AddressMap : ClassMap { public AddressMap() { Id(x=>x. Id); Map(x=>x.

Address1); Map(x=>x. Address2); } } public class PersonMap : ClassMap { public PersonMap() { Id(x=>x. Id); Map(x=>x.

First); Map(x=>x. Last); } } public class TypeMap : ClassMap { public TypeMap() { Id(x=>x. Id); Map(x=>x.

TypeName); } } public class PersonAddressMap : ClassMap { public PersonAddressMap() { Id(x=>x. Id); References(x=>x. Person, "PersonId"); References(x=>x.

Address, "AddressId"); References(x=>x. Type, "TypeId"); } }.

This works great! Thanks for all your help. – Rusty Aug 12 '10 at 12:22.

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