The line of code:
_daaHBM.FetchEntity(pbe, (IPrefetchPath2)pbe.ConstructFilterForUCFnameLnameEmailAddressBrokerCode());
The error:
Unable to cast object of type 'SD.LLBLGen.Pro.ORMSupportClasses.PredicateExpression' to type 'SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPath2'.
I have a unique constraint on the database table on the FName, LName, EmailAddress and BrokerCode columns. All 4 values get populated in the instance of the entity (pbe).
This is probably something really stupid that I'm overlooking.
Any help would be appreciated.
Wayne E. Pfeffer