Would this work for you: return from v in qry where buildingStatus. Contains(v. Status) select v.
The suggested approaches I believe are correct... you should also keep in mind the IEnumerable. Where method. msdn.microsoft.com/en-us/library/bb91002....
You can use the IEnumerable. Contains extension method and allow your method to be more versatile: public static IQueryable WithStatus(this IQueryable qry, IEnumerable buildingStatus) { return from v in qry where buildingStatus. Contains(v.
Status) select v; }.
I'm new in LINQ. I wanna query all rows that the description column string (example value "i am feeling lucky today.") contains/match any item in a List lst. Example the list items contain {"lucky", "bad", "ok" }.
I would like to achieve by using linq only, but I am confuse are below methods correct?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.