2010-02-07 156 views
0

我有一个新闻表,我想让用户搜索它。事情是这样的:Linq to SQL搜索查询

News.Where(p => p.Title == user_query); 

...这将允许更高级的查询,如Differences Between "Linq to Objects" and "Linq to SQL" queries等。此外,它应该是不区分大小写。

+0

可能的重复:http://stackoverflow.com/questions/224475/is-it-possible-to-use-full-text-search-fts-with-linq – 2010-02-07 14:54:46

回答

0

John的回答here

的LINQ to SQL不支持全文搜索,但你可以写一个存储过程和调用。有关更多详细信息,请参阅this blog post