Код: Выделить всё
var myResult = uow.GetRepository()
.Query(x => x.CustomerId == customerId && x.SquareColor == squareColor)
.OrderBy(x => x.BranchMapRang)
.Select((r, i) => new { Row = r, Index = i })
.Where(x => x.Index == visitCounter - 1).ToList();
Код: Выделить всё
.Where(x => x.Index.Contains(visitCounter)).ToList();
Подробнее здесь: https://stackoverflow.com/questions/459 ... se-in-linq
Мобильная версия