public void Dispose() { if (_vehicleDbContext != null) { _vehicleDbContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { context.Dispose(); } } this.disposed = true; }
public void Dispose() { _db.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { db.Dispose(); }