LINQ ~ where like


x = (from r in ctx.xxxxxx
where r.name.Contains("adasdad")
select (new KeyValuePair(r.id.ToString(), r.name))
).ToDictionary(t => t.Key, t => t.Value);


reference
http://stackoverflow.com/questions/5374481/like-operator-in-linq

沒有留言: