コード例 #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public BusinessManagement()
 {
     if (_current == null || _current.IsDisposed)
     {
         lock (lckObj)
         {
             if (_current == null || _current.IsDisposed)
             {
                 _current = new BusinessUtility(NHibernateConfigFileName);
             }
         }
     }
     originLevel = _current.TranLevel;
 }
コード例 #2
0
 public void AddAssembly(string assemName)
 {
     BusinessUtility.AddAssembly(NHibernateConfigFileName, assemName);
 }
コード例 #3
0
 public void AddAssembly(Assembly assem)
 {
     BusinessUtility.AddAssembly(NHibernateConfigFileName, assem);
 }
コード例 #4
0
 public void ClearCache()
 {
     BusinessUtility.ClearSession(NHibernateConfigFileName);
 }