Exemplo n.º 1
0
        public static ISession OpenFilteredSession(this ISessionFactory sessionFactory, HttpContextBase context)
        {
            var session = new MrCMSSession(sessionFactory.OpenSession(), context);

            session.EnableFilter("NotDeletedFilter");
            return(session);
        }
Exemplo n.º 2
0
        public static ISession OpenFilteredSession(this ISessionFactory sessionFactory)
        {
            var session = new MrCMSSession(sessionFactory.OpenSession());

            session.EnableFilter("NotDeletedFilter");
            return(session);
        }