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