Show / Hide Table of Contents

Class RelationshipInfo

Defines information about the relationship between tables.

Inheritance
Object
RelationshipInfo
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.ArcGISServices
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class RelationshipInfo
Remarks

A relationship consists of two and only two tables, each having one of these roles in the relationship: Origin table, sometimes referred to as the source table or original table. Destination table. One table must have one of these roles and the other table must have the other role. A table can participate in more than one relationship. Further, a table may be an origin table in one relationship and also a destination table in another relationship. The relationship's cardinality describes whether features in a table are related to only one feature in the other table, or whether a feature may be related to multiple features. In a simple relationship, the features in the participating tables can exist without the other. For example, a transformer and an electric pole may be related but one's existence does not depend on the other. Deleting the origin features will simply disassociate the destination features from the origin features. In a composite relationship, the destination features cannot exist without the origin features. When the origin feature is deleted, the related destination feature is deleted as well. This is called a cascade delete. This dependency also means that each destination feature must be linked to a counterpart origin feature.

Properties

Name Description
Cardinality

Gets the cardinality of this relationship.

Id

Gets the ID of this relationship.

IsComposite

Gets a value indicating whether this is a composite relationship.

KeyField

Gets the key field, the field that links the origin and destination tables of this relationship.

KeyFieldInRelationshipTable

Gets the key field in the relationship table.

Name

Gets the name of the relationship.

RelatedTableId

Gets the ID of the related table.

RelationshipTableId

Gets the ID of the relationship table. The default value is -1, indicating that no table exists.

Role

Gets the role that this table has in this relationship.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.1 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.1 - 100.15
iOS100.1 - 100.15
UWP100.1 - 200.0

Relevant samples

Map image layer tables: Find features in a spatial table related to features in a non-spatial table.
In This Article
Back to top Copyright © 2022 Esri.