I submitted a patch that allows these methods to be registered. http://216.121.112.228/browse/NH-2357
Hopefully it is accepted. On Sep 29, 12:22 pm, Danielg <[email protected]> wrote: > Thanks for the suggestions. I did try that and it does compile > successfully, but SQL cannot execute a Contains(...) = true > expression. > > On Sep 29, 10:17 am, "Wenig, Stefan" <[email protected]> wrote: > > > Just guessing, but might work - try to build this expression: > > Contains (...) == true > > > Sent from my HTC phone > > > ----- Ursprüngliche Nachricht ----- > > Von: Danielg <[email protected]> > > Gesendet: Mittwoch, 29. September 2010 11:01 > > An: nhibernate-development <[email protected]> > > Betreff: [nhibernate-development] Boolean Method Expression > > > I am really enjoying the new features in NH 3 for extending the Linq > > provider. I have run into a block when trying to implement the MsSQL > > FREETEXT method. > > > WHERE FREETEXT (ColumnName, 'text' ) > > > I have tried creating a new generator that uses the treeBuilder to > > create a method call, however this produces a runtime exception. > > > Unable to cast object of type 'NHibernate.Hql.Ast.HqlMethodCall' to > > type 'NHibernate.Hql.Ast.HqlBooleanExpression'. > > > The where clause is expecting that its expression will be a boolean > > expression. I cannot use the treebuilder.Equality because there is > > only one side to the expression. Can someone point me in the right > > direction? Or is this possible with the current build? I am running > > off the trunk. > >
