Monday, April 25, 2011

Enabling Nhibernate filters by default

Is there a way to make sure a filter (<filter-def>) in enabled by default as opposed to having to call session.EnableFilter("filter_name") everytime?

From stackoverflow
  • You can use filters in the mapping files as shown here

    Khash : I've seen that and it clearly doesn't answer my question, which is not about the use of filters but enabling them by default.

0 comments:

Post a Comment