Hi,
I have an entitycollection with SalesReports and prefetched the child-SalesReportLine's.
Now I need to find in-memory the SalesReportLine where 'ExternalId=_id'.
This query (executed against the database) returns always 0 or 1 records, because ExternalId is unique (but nullable, so it does not have an unique contraint)
Is it possible (i.e. with EntityView, but how to specfiy de predicate?), to do this in-memory in an other way than:
For Each report As SalesReportEntity In myCollection
For Each line As SalesReportLineEntity In report.SalesReportLine
If line.ExternalId = _id Then
return line
End If
Next
Next
?
It is possible in the above way, but I don't really like it
but it may be purism...