here are two other posts which may help http://ayende.com/Blog/archive/2009/05/04/nhibernate-filters.aspx http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx
On Jan 14, 3:23 am, Jonas <[email protected]> wrote: > Hello! > > I'm trying to follow this > articlehttp://nhforge.org/wikis/howtonh/contextual-data-using-nhibernate-fil... > to implement a contextual aware class. Being pretty new to NHibernate > I'm feeling I'm in way over my head. > > In my application I have a Student. The student has several addresses, > one for each customer (since customers shares students but they do not > share the addresses). So I end up with something looking like this: > > Student.Addresses , which is a List of Addresses > > I would like to have this: > Student.Address > > Where address is contextual depending on a customerId. Am I on the > right track following the above article? In the article the class Cat > is contextualized, in my scenario would that translate to the class > Address? If so, it doesn't make sense to me to add a property > "Context" to the Address(Cat) class when I would like to have that > property in the Student class. > > I'm just having trouble tying it all together using my scenario. Any > help would be greatly appreciated.
-- 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.
