public Repository(CarInsuranceContext context) { dbContext = context; entitySet = dbContext.Set <TEntity>(); }