Listts.Where(t => t.content.IndexOf(search) != -1).ToList();

相当于 sql语句:

where content like '%"+search+"%'

 

================

t=> search.Contains(t.content)

这个相当于 sql语句:

 

where content='"+search+"'

 

 

posted on 2009-11-26 15:56  微星  阅读(21411)  评论(0编辑  收藏  举报