Globalization with NHibernate
How would you build your domain objects and create its respective NHibernate mapping files for a multi language application. The UI part is stored in resource files but user data needs to go into the database.
I want to do the following:
Product p = DALProduct.getByID(2) p.name //results in the language of the current UICulture
I have found the following article which is really close:
As I am new to NHibernate I am not sure if that will perfectly work for enterprise solutions.
Do you have other suggestions? How do you solve such scenario?
It should be flexible to:
- Inserting, Updating and selecting