protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this._mainContext == null) { return; } this._mainContext.Dispose(); this._mainContext = null; }
public AA_BBDDContext GetMainContext() { return(_mainContext ?? (_mainContext = new AA_BBDDContext(config[Constants.CONN_STRING_KEY]))); }