You may do also this (the post is more recent) http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html <http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html>
On Fri, Dec 18, 2009 at 3:38 PM, Alexandre Payette <[email protected]>wrote: > I was curious to know if any of you have a good NHibernate trick to do > object localisation. > > Say I have a product, which have a Display Name, a Description, etc. And I > want to display that information according to the user's language settings. > > So far, I'm doing it in two queries, one who gets the product itself > (defined with a default language) and one that fetch the translated > information that I have stored in a secondary table, in which I define the > table's "translatable" field and link it one-to-one to the product using the > product's ID + User's Language code. > > It works, its not spectacular, but it does the job. > > Anyone can share a better model / implementation ? > > Thanks > > Alex > > -- > 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.
