views:

31

answers:

1

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)
+2  A: 

Yes. Either register the function in the dialect or use Expression.Sql.

Mauricio Scheffer
Thanks, I used Expression.Sql and it worked like a charm
Am