protected void Dispose(bool disposing) { if (disposing) { if (db != null) { db.Dispose(); db = null; } } }
public Repository(ContactDatabaseContext context) { this.context = context; entities = context.Set <T>(); }