[ROOT] / doc / DocFrag / ARCQuery.QueryExpressionAggregate.TryCheckForExistenceOfKey
Key | Value |
---|---|
Assembly | ARCQuery |
DocFragType | ClassMember |
IsInherited | -True- |
IsInheritedDoc | -True- |
Name | TryCheckForExistenceOfKey |
Namespace | ARCQuery |
Type | QueryExpressionAggregate |
ClassMemberAttribute
Key | Value |
---|---|
DeclaringType | QueryExpression |
MethodName | TryCheckForExistenceOfKey |
MethodSignature | Boolean TryCheckForExistenceOfKey(ARCQuery.Query, ARCCore.IK, ARCCore.PK ByRef) |
Used by query expressions in order to catch wrong field names used or misspelling of field names.
Returns TRUE if either:
1) -TryGetFromTypeAndFieldName succeeds (in which case out parameter keyAsPK will be set),
2) (new from Jan 2022) -AllEntityMethodKeysForEntityTypeDict contains the key,
3) CurrentStrictness = OFF,
4) Result is empty, or,
5) At least one element in Result contains the given key
Note that this check must be deferred to the actual execution of the query, not at TryParse, because the query expression mechanism has no concept of for which entity types it operates on.
Will call ShouldTerminate if fails to get the key, this again will set TerminateReason with detailed information about available keys (that is, with a helpful error message).
Generated 2024-11-12 23:54:12.130 UTC