Пример #1
0
 public static BaseDAL Instance()
 {
     if (dalBase == null)
     {
         dalBase = new BaseDAL();
     }
     return(dalBase);
 }
Пример #2
0
 public static BaseDAL Instance()
 {
     if (dalBase == null)
     {
         dalBase = new BaseDAL();
     }
     return dalBase;
 }
Пример #3
0
 public PoolUtil()
 {
     unit = BaseDALPool.Instance().GetValidDal();
     if (unit != null)
     {
         dalBase = unit.baseDal;
     }
     else
     {
         //这里应该要有忙碌的处理
     }
 }
Пример #4
0
 public PoolUtil()
 {
     unit = BaseDALPool.Instance().GetValidDal();
     if (unit != null)
     {
         dalBase = unit.baseDal;
     }
     else
     {
         //这里应该要有忙碌的处理
     }
 }