http://fabiomaulo.blogspot.com/2010/02/conform-nhibernate-un-mapping.html <http://fabiomaulo.blogspot.com/2010/02/conform-nhibernate-un-mapping.html>
On Mon, Apr 12, 2010 at 3:00 PM, Tom Bushell <[email protected]> wrote: > > > On Apr 12, 2:51 pm, Fabio Maulo <[email protected]> wrote: > > This is my mapping > > orm.TablePerClass<Client>(); > > orm.TablePerClass<Party>(); > > orm.TablePerClass<Product>(); > > orm.TablePerClass<ClientOrder>(); > > orm.Patterns.Poids.Add(new > > ConfOrm.Shop.Patterns.PoidPropertyAsClassNameId()); > > That's fairly elegant - I'm impressed! > > Am I correct in thinking that this is your own enhancement to > NHibernate, or does the basic NHibernate distribution support this? > > This is a slightly different approach to FNH automapping, in that you > have to specify how to map a class (e.g. TablePerClass - I assume > there are other pre-defined mappings as well). But in practice, it > seems it would be equally convenient. > > Are you saying it would work with Brand's classes as he defined them? > If so, that's very nice - not having to make any changes to your > domain classes to support the ORM. > > If I wanted to evaluate this approach, how would I get started? > > -Tom > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
