开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜