private Transaction(string guid, ISession session, TransactionSupport ts, SessionCache manage)
 {
     this._guid = guid;
     this._session = session;
     if (ts != TransactionSupport.Support)
     {
         this._trans = _session.BeginTransaction();
         this._newTrans = true;
     }
     else
     {
         this._trans = null;
         this._newTrans = false;
     }
     manage.CurTrans = this;
     this._buildSession = true;
 }
 private static SessionCache CreateCache(string cacheGuid)
 {
     SessionCache cache = new SessionCache(cacheGuid);
     SessionCache._cacheContainer.Add(cacheGuid, cache);
     return cache;
 }