111,120
社区成员
发帖
与我相关
我的任务
分享var query = from c in ctx.Customers
where SqlMethods.Like(c.City, "%ab%")
select c;
IList<string> list = new List<string>();
list.Add("hello the world");
list.Add("hello world");
var result = from t in list
where t.Contains("the")
select t;
foreach (string t in result)
Console.WriteLine(t);
//结果: hello the world
