Perform MySql Fulltext Search using NHibernate
Is it possible to execute a statement like this in NHibernate?
SELECT * FROM
mytable开发者_运维知识库
WHERE
field2 = "word"
OR
MATCH (field1) AGAINTS ('wordA' IN BOOLEAN MODE)
Yes. Either register the function in the dialect or use Expression.Sql
.
精彩评论