I have a list of this model: Model1
public class Model1//: IConvertible
{
public int p1 { get; set; }
public string p2{ get; set; }
}
And I'm trying to do a linq query from another table to get data using a list of Model1
List<Model1> lList = GetModel();
var test = Model2.Where(p => lList .Any(l => p.p1== l.p1 && p.p2== l.p2)).ToList();
What am I missing?