Beispiel #1
0
        public static AlarmTable_enDAL getInstance(string json = null)
        {
            if (null == _DataDal)
            {
                lock (_loker)
                {
                    if (null == _DataDal)
                    {
                        _DataDal = new AlarmTable_enDAL();
                        _DataDal.userQueryAlarmCountInf = new QueryAlarmCount(_DataDal.queryAlarmCountInf);
                    }

                    _DataDal._dbCacheFactory = DBCacheFactoryManager.GetDBFactory();
                }
            }
            return(_DataDal);
        }
Beispiel #2
0
        public static ModuleDAL getInstance(string json = null)
        {
            if (null == _DataDal)
            {
                lock (_loker)
                {
                    if (null == _DataDal)
                    {
                        _DataDal = new ModuleDAL();
                        _DataDal.userQueryMenuInf = new QueryMenuInf(_DataDal.queryMenuInf);

                        _DataDal._dbCacheFactory = DBCacheFactoryManager.GetDBFactory();
                    }
                }
            }

            return(_DataDal);
        }