protected virtual void Dispose(bool disposing) { if (disposing) { _db.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { DbContextClass _db = new DbContextClass(); if (disposing) { _db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { _dbcontext.Dispose(); } } this._disposed = true; }