Если я попытаюсь выполнить запрос следующим образом:
Код: Выделить всё
var result = from r in db.Foo
where r.Bar > 100
select Bar;
Код: Выделить всё
The LINQ expression 'DbSet.Where(r => r.Bar > 100)' could not be translated.
Either rewrite the query in a form that can be translated,
or switch to client evaluation explicitly by inserting a call to either
AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync().
See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
Код: Выделить всё
var result = from r in db.Foo
where r.Bar.CompareTo(100) > 0
select r;
Подробнее здесь: https://stackoverflow.com/questions/792 ... ith-operat