FieldCompareSetPredicate for adapter?

Posts   
 
    
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 03-Feb-2007 02:33:39   

I'm trying to use FieldCompareSetPredicate. I'm using adapter.

It seems FieldCompareSetPredicate is only for Self Service. All it's constructors only accept IEntityField and not IEntityField2 contrary to all examples shown in the help... under "Generated code - The predicate system, Adapter". What the hell?

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 03-Feb-2007 03:03:43   

What the hell indeed.

The overloads that accept an IEntityFieldCore will accept IEntityField2. Give those a try and let us know if you have problems and possibly the example.

This thread has an example http://www.llblgen.com/tinyforum/GotoMessage.aspx?MessageID=43135&ThreadID=7779.

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 03-Feb-2007 05:12:45   

Sorry about the hell speak. I've got ppl breaking my door down waiting on this. So i'm stressed frowning

Thanks i'll try that.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 03-Feb-2007 10:31:11   

Indeed, the IEntityFieldCore overload eats the IEntityField2 ones. It's a leftover from a looooong lasting design flaw since the first release of adapter (well, not really a flaw, it's just a matter how you look at it wink ) : instead of making an overload with IEntityField2, I decided to make an overload with IEntityFieldCore, and because IEntityField also implements IEntityFieldCore, I needed persistenceinfo there as well, which was designed in to be able to specify the two at once, however, it was never really needed.

So lessons learned for me: first write testcode to consume what you think is ok, then write the real code simple_smile .

Frans Bouma | Lead developer LLBLGen Pro