Hi,
I have an array of strings
var controlsToGet = new[] {"lblHome","lblContact"};
I have List<LanguageControl>
and LanguageControl class holds Controls in it.
I want to get Controls from List which Control.Name == controlsToGet
I am looking for something like that
var all = fooelements.where(l=>l.Control.Name == controlsToGet);
Is it possible with lambda or linq.
Note: I was able to do it with Nhibernate's Disjunction, i am looking for something like that
EDIT : What would i do if i want to use this query for data base with the Entity Framework ?
Thank you