[ROOT] / doc / DocFrag / ARCQuery.ForeignKey.AllForeignKeysForEntityType
| Key | Value |
|---|---|
| Assembly | ARCQuery |
| DocFragType | ClassMember |
| IsInherited | -False- |
| IsInheritedDoc | -False- |
| Lines | -12- |
| Name | AllForeignKeysForEntityType |
| Namespace | ARCQuery |
| Type | ForeignKey |
ClassMemberAttribute
| Key | Value |
|---|---|
| DeclaringType | ForeignKey |
| MethodName | AllForeignKeysForEntityType |
| MethodSignature | System.Collections.Generic.List`1[ARCCore.IKString] AllForeignKeysForEntityType(System.String) |
Returns all possible foreign keys relevant for the given entity type, like for Order: 'Customer.FirstName' and 'Customer.LastName'.
Useful in error message or when giving suggestions to users about possible keys to use.
Will only traverse one step in the relational structure, that is, for OrderLine, will not traverse to 'Order.Customer.Firstname' and so on.
Depends on AllIPDerivedTypes and - GetAllPKForEntityTypeString- (the static defined schema), that is, it does not attempt to dynamically discover any structures.
The string representation of the entity type (the entity type parameter) should be the very short string representations of the type (as generated from ToStringVeryShort).
Returns an empty collection if no foreign keys found.
Note how the return value is of type IKString and not ForeignKey, because the latter requires more information than given here in order to initialize
Generated 2025-10-29 15:17:31.157 UTC