Hello, I'm trying to handle row-level security within my application and I need a way to append custom criteria to every query issued by nhibernate. With "custom criteria" I mean I'd like to write detached criteria and then attach them to the query being executed, dependending on the type of object being queried.
During my research I found a promising place to write the logic which is the "SqlString OnPrepareStatement(SqlString sql)" event. Unfortunately I cannot quite understand how to manipulate a detached criteria in order to build and SqlString and "attach" it to the SqlString passed as parameter in OnPrepareStatement. Probably this method gets called a little bit too late than I would have liked. I am at a loss, is there a way to do what I'd like to do? Thank you -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
