FieldFullTextSearchPredicate

Posts   
 
    
Posts: 98
Joined: 09-Feb-2005
# Posted on: 06-Jun-2006 01:30:45   

Ok, so I'm using adapter w/ the new beta, and need to create a full text predicate. The problem is that FieldFullTextSearchPredicate seems to only work with IEntityField objects, not IEntityField2. I can't seem to figure out how to create one of these guys. The code from the 1.x documentation doesn't appear to be working.


bucket.PredicateExpression.Add(new FieldFullTextSearchPredicate(
    CustomerFields.CompanyName, null, 
    FullTextSearchOperator.Contains, "Solution"));

Any thoughts? I'm using the June 1 release. Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 06-Jun-2006 07:50:07   

That's the adapter constructor indeed. What kind of error do you get? It matches with this constructor: public FieldFullTextSearchPredicate(IEntityFieldCore field, IFieldPersistenceInfo persistenceInfo, FullTextSearchOperator operatorToUse, string pattern)

so I have no idea what could go wrong. Please elaborate more on what goes wrong, which .NET version you're using, the error description, when the error occurs...

Frans Bouma | Lead developer LLBLGen Pro
Posts: 98
Joined: 09-Feb-2005
# Posted on: 06-Jun-2006 18:39:01   

Dear Frans. I'm a dork. (wrong method sig)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 06-Jun-2006 19:03:26   

jeffdeville wrote:

Dear Frans. I'm a dork. (wrong method sig)

heh simple_smile

Frans Bouma | Lead developer LLBLGen Pro