2010-02-07 152 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