I've done a few searches and tried a few other options but I've not got this to work. We're migrating a VB.NET 2003 project using LLBLGen Pro 1.0.2005 (I think) to VB.NET 2005 with LLBLGen Pro 2.0. We're also going from Self Servicing with one database to Adapter with two databases as we need to access both at once for enhancements.
We had the following code before which filtered the list of customers based on a substring:
Dim filter As IPredicateExpression = New PredicateExpression(PredicateFactory.Like(CustomerFieldIndex.Name, Me.txtAccountName.Text & "%"))
This code doesn't work directly as PredicateFactory is not declared. I have tried variations of:
filter.Add(New FieldCompareValuePredicate(CustomerFields.Name, Nothing, ComparisonOperator.Equal, txtAccountName.Text))
but I can't get that to do a substring search - it's fine if you put the full customer name in...
I've tried things like:
filter.Add(New FieldFullTextSearchPredicate(CustomerFields.Name, Nothing, FullTextSearchOperator.Contains, txtAccountName.Text))
But that complains that it's not full-text indexed and I don't want to have to change the database when this was possible before - there must be a way!
Thanks for your help,
James