Exemple #1
0
 public static ISession GetSession(string sessionFactoryName)
 {
     return(Hibernator.GetSession(sessionFactoryName));
 }
 /// <summary>
 /// Begins a new transaction on the named Hibernator session factory,
 /// using the requested isolation level.
 /// </summary>
 /// <param name="factoryName"></param>
 /// <param name="isolationLevel"></param>
 public HibernationTransaction(string factoryName, IsolationLevel?isolationLevel)
 {
     this.SessionFactoryName = factoryName;
     this.Session            = Hibernator.GetSession(factoryName);
     this.Transaction        = Hibernator.BeginTransaction(factoryName, isolationLevel);
 }