protected virtual void Dispose(bool disposing) { if (disposing) { _db.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
//Garbage Colector and Disposing off Method protected override void Dispose(bool disposing) { DBContextClass db = new DBContextClass(); if (disposing) { db.Dispose(); } base.Dispose(disposing); }