protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Disposing /// </summary> /// <param name="disposing">Bool to dispose</param> public virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { dbContext.Dispose(); } } disposed = true; }