Пример #1
0
 protected void Execute(Action <ISession> expression)
 {
     using (var session = NhibernateSessionHelper.OpenSession())
     {
         expression(session);
     }
 }
Пример #2
0
 protected T Execute <T>(Func <ISession, T> expression)
 {
     using (var session = NhibernateSessionHelper.OpenSession())
     {
         return(expression(session));
     }
 }