http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx<http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx> http://nhforge.org/wikis/howtonh/contextual-data-using-nhibernate-filters.aspx
2009/10/13 José F. Romaniello <[email protected]> > Hi, have look to this topic: > https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/filters.html > > 2009/10/13 JamesSpibey <[email protected]> > > >> Hi, >> >> I have a series of entities (for example Product entities) which have >> properties/collections associated with them. However, some of the >> collections and properties on the entity may be context specific, i.e. >> prices which are specific to a given customer etc. Clearly this >> requires that when loading these objects some criteria must be passed >> in to determine which data to load. >> >> What is the correct way to represent this in NH? Should I have a basic >> Product entity and then derive a CustomerProduct or something which >> contains the customer specific information? How do you create the >> mappings for this to ensure that the correct information is retrieved >> through all the child objects? >> >> Regards >> >> James >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
