public Repository(IContextFactory <TContext> context) { entitySet = context.EntitySet <TEntity>(); entityEntry = e => context.EntityEntry(e); }