0
我有一个名为Country的字段。 现在我必须根据匹配的国家过滤记录。Linq to Entity中多个国家的lambda表达式
当我必须过滤单个国家的记录时,我使用下面的lambda表达式。
string strCountry = "USA";
var data = entities.Documents.Where(p => p.Country == strCountry);
现在我有以下列表的国家。我想知道如何过滤这个Contry列表的记录。
List<string> strCountry = new CacheUser().GetUserCountry();
欣赏您的回复。
感谢