开发者

Perform MySql Fulltext Search using NHibernate

开发者 https://www.devze.com 2023-01-12 04:51 出处:网络
Is it possible to execute a statement like this in NHibernate? SELECT * FROM mytable开发者_运维知识库

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

精彩评论

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