public GenericRepository(ExampleDatabaseEntities db) { this.db = db; table = db.Set <T>(); }
public GenericRepository() { this.db = new ExampleDatabaseEntities(); table = db.Set <T>(); }