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

相当于 sql语句:

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

 

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

t=> search.Contains(t.content)

这个相当于 sql语句:

 

where content='"+search+"'

 

 

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-05-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2021-12-04
  • 2021-11-20
  • 1970-01-01
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案