我已经尝试过搜索这个但是找不到适合我情况的例子.
我有这种方法给回头客.如何使用字符串数组代码进行过滤?包含对我不起作用.
public static List<Customer> GetCustomers(string[] customerCodesArray)
{
using (busDataContext g = new busDataContext())
{
return g.Customers.Where(
x => x.customerCode.Contains(customerCodesArray)).ToList();
}
}
Run Code Online (Sandbox Code Playgroud)