liam
Fri, 24 Apr 2009 23:01:49 -0700
I have not added the tenant descriminators yet but I expect that each entity would have a tenant field since that is probably easiest. The part I dont understand is how to setup the filter mapping using the fluent interface.
http://74.125.95.132/search?q=cache:vR-X1s1ZBqcJ:www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/filters.html+nhibernate+filters&cd=1&hl=en&ct=clnk&gl=au&client=firefox-a On Apr 22, 10:24 pm, Paul Batum <paul.ba...@gmail.com> wrote: > Hi Liam, > > I haven't worked with filters so my knowledge is a little hazy, please > correct me if I am on the wrong track here. > > I presume you would implement the filters themselves using the fluent > interface, so are you asking about how to automap an extra tenant column for > each table in your application? In this case, do your entities have the > tenant field defined on them, or are you doing something tricky with the > persistence of the entities to see that the tenant value is set > transparently without representing it directly on the entity? > > Paul Batum > > > > > > On Tue, Apr 21, 2009 at 10:41 AM, liam <liam.mclen...@gmail.com> wrote: > > > Is there a way to configure NHibernate filters for use with auto > > mapping? I want to implement multitenancy by having a field on every > > table that identifies the tenant. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---