Ali wrote:
The flightEntity has values for the fields in the unique constraint. I did see the values in the predicateexpression returned from the ConstructFilterForUCFlightNumberOriginDestinationSkedDepartGMTRef() and it has the expected values.
Before creating unique constraint on the table, I tried creating predicate expression and used FetchEntityUsingUniqueConstraint() method and it did return true. Iam having problem after creating the unique constraints on the table.
Your help would be really appreciated.
(btw, I did move your thread to the general forum and answered your question earlier on in that thread. But lets stick to this thread
The method ConstructFilterForUCFlightNumberOriginDestinationSkedDepartGMTRef should produce the same predicate expression as you otherwise would create by hand. That's the weird part. Could you check if that's the case? Be sure to use the predicate expression returned by ConstructFilterForUCFlightNumberOriginDestinationSkedDepartGMTRef !!