[ROOT] / doc / DocFrag / ARCQuery.QueryExpressionAggregate.TryCheckForExistenceOfKey

KeyValue
AssemblyARCQuery
DocFragTypeClassMember
IsInherited-True-
IsInheritedDoc-True-
NameTryCheckForExistenceOfKey
NamespaceARCQuery
TypeQueryExpressionAggregate

ClassMemberAttribute

KeyValue
DeclaringTypeQueryExpression
MethodNameTryCheckForExistenceOfKey
MethodSignatureBoolean 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).

Edit


Generated 2024-11-14 04:27:50.643 UTC