public BaseRepository(VendorsDbContext context) { _context = context; _entities = context.Set <TEntity>(); }