I just implemented this the other day, you can do it with the WithTable method. public class PersonMap : ClassMap<Person> { public PersonMap() { Id(x => x.PersonId); Map(x => x.Name);
WithTable("PersonExtra", m => { m.Map(x => x.Age); }); } } On Tue, Oct 7, 2008 at 12:30 PM, Chris <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have a situation where I have a horizontally partitioned table... > > Person > ---------- > PersonId (PK) > Name (nvarchar) > > PersonExtra > ------------------ > PersonId(PK,FK) > Age (int) > > and wanted to map these to a class like.. > > class Person > { > int PersonId {get;set;} > string Name {get;set;} > int Age { get; set; } > } > > I was hoping to take advantage of the new "join" element added to > NHibernate 2.0 which allows for this kind of behaviour. I wasn't able > to find support for this in the fluent library and was trying to think > of how you would go about this. > > I came up with the following syntax as a possible route, but I'm not > entirely sure it's the cleanest or most fluent solution possible... > > class PersonMap > { > > } > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---