protected virtual void Dispose(bool disposing) { if (disposing) { if (context != null) { context.Dispose(); context = null; } } }
public GeneralRepository() { context = new AccountingContext(); dbSet = context.Set <T>(); }