I have code like this:
var modele = from model in ds.Tables["modele"].AsEnumerable()
where model.Field<string>("KRAJ_PRODUKCJI") == krajText
&& model.Field<string>("FABRYKA") == fabrykaText
// && model.Field<string>("NAZWA") == itemId
orderby model.Field<string>("NAZWA")
select model;
In the commented out line I need to dynamically generate a where
clause or check that the field NAZWA
is equal to one of multiple keyword in itemId
which is a list with a few keyword to check with || between.
Is it possible to do this?
Have you tried something like:
I'm not sure if that's what you're looking for, but it might be.
@korchev's won't work because you want an "||".
Mam nadzieje ze to pomocne.