Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this._mainContext == null)
            {
                return;
            }

            this._mainContext.Dispose();
            this._mainContext = null;
        }
Пример #2
0
 public AA_BBDDContext GetMainContext()
 {
     return(_mainContext ?? (_mainContext = new AA_BBDDContext(config[Constants.CONN_STRING_KEY])));
 }