Can anyone help how to use the associated search using linq ("where in" in sql)?
Linq Where search follows here,
1. select * from tablename where code = 'code1'
`string[] numbers = { "one", "two", "three", "four" };
string searchNumber = "two";
var number = from number1 in numbers
where number1 == searchNumber
select number1;
foreach (var n in number)
Console.WriteLine(n);
Console.ReadLine();`
How to search the set of codes using LINQ?
2. select * from tablename where code in ('code1','code2')