IQueryable<SomeType> result = (from x in Context.XXX select x);
现在我需要做的是以下(编写的伪代码,我需要实际代码):
foreach(var i in items)
{
// Where the object "i" has 2 properties
// 1) i.Operator (values of which can be AND or OR)
// 2) i.SomeID (values of which can be 1 .. 10)
// I need to build the LINQ query with "ands" and "ors" based on the i's in this foreach
}