I haven't tried this, but you might be able to compare with true as a
work-around.

        Patrick Earl

On Tue, Sep 28, 2010 at 3:43 PM, Danielg <[email protected]> wrote:

> 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.
>

Reply via email to