Show / Hide Table of Contents

Class DTRelationshipInfo

Class DTRelationshipInfo corresponds to an element of type Relationship in a DTDL model.

Inheritance
object
DTEntityInfo
DTNamedEntityInfo
DTContentInfo
DTRelationshipInfo
Implements
IEquatable<DTEntityInfo>
IEquatable<DTNamedEntityInfo>
IEquatable<DTContentInfo>
IEquatable<DTRelationshipInfo>
Inherited Members
DTNamedEntityInfo.Name
DTEntityInfo.EntityKind
DTEntityInfo.ChildOf
DTEntityInfo.DefinedIn
DTEntityInfo.Id
DTEntityInfo.UndefinedProperties
DTEntityInfo.LanguageMajorVersion
DTEntityInfo.UndefinedTypes
DTEntityInfo.Description
DTEntityInfo.DisplayName
DTEntityInfo.Comment
DTEntityInfo.ValidateInstance(JsonElement)
DTEntityInfo.ValidateInstance(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DTDLParser.Models
Assembly: DTDLParser.dll
Syntax
public class DTRelationshipInfo : DTContentInfo, IEquatable<DTEntityInfo>, IEquatable<DTNamedEntityInfo>, IEquatable<DTContentInfo>, IEquatable<DTRelationshipInfo>

Properties

| Edit this page View Source

ClassId

Get the DTMI that identifies type Relationship in the version of DTDL used to define this element.

Declaration
public override Dtmi ClassId { get; }
Property Value
Type Description
Dtmi

The DTMI for the DTDL type Relationship.

Overrides
DTContentInfo.ClassId
| Edit this page View Source

MaxMultiplicity

Gets the value of the 'maxMultiplicity' property of the DTDL element that corresponds to this object.

Declaration
public int? MaxMultiplicity { get; }
Property Value
Type Description
int?

The 'maxMultiplicity' property of the DTDL element.

| Edit this page View Source

MinMultiplicity

Gets the value of the 'minMultiplicity' property of the DTDL element that corresponds to this object.

Declaration
public int? MinMultiplicity { get; }
Property Value
Type Description
int?

The 'minMultiplicity' property of the DTDL element.

| Edit this page View Source

Properties

Gets the values of the 'properties' property of the DTDL element that corresponds to this object.

Declaration
public IReadOnlyList<DTPropertyInfo> Properties { get; }
Property Value
Type Description
IReadOnlyList<DTPropertyInfo>

The 'properties' property of the DTDL element.

| Edit this page View Source

SupplementalProperties

Gets the supplemantal properties of the DTDL element that corresponds to this object.

Declaration
public override IDictionary<string, object> SupplementalProperties { get; }
Property Value
Type Description
IDictionary<string, object>

A dictionary that maps each string-valued property name to an object that holds the value of the property with the given name.

Overrides
DTContentInfo.SupplementalProperties
Remarks

If the property is a literal in the DTDL model, the object holds a literal value. If the property is another DTDL element in the model, the object is the C# object that corresponds to this element.

| Edit this page View Source

SupplementalTypes

Gets a collection of identifiers, each of which is a Dtmi that indicates a supplemental type that applies to the DTDL element that corresponds to this object.

Declaration
public override IReadOnlyCollection<Dtmi> SupplementalTypes { get; }
Property Value
Type Description
IReadOnlyCollection<Dtmi>

A collection of DTMIs indicating the supplemental types that apply to the DTDL element.

Overrides
DTContentInfo.SupplementalTypes
| Edit this page View Source

Target

Gets the value of the 'target' property of the DTDL element that corresponds to this object.

Declaration
public Dtmi Target { get; }
Property Value
Type Description
Dtmi

The 'target' property of the DTDL element.

| Edit this page View Source

Writable

Gets the value of the 'writable' property of the DTDL element that corresponds to this object.

Declaration
public bool Writable { get; }
Property Value
Type Description
bool

The 'writable' property of the DTDL element.

Methods

| Edit this page View Source

DeepEquals(DTContentInfo)

Compares to another DTContentInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTContentInfo other)
Parameters
Type Name Description
DTContentInfo other

The other DTContentInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.DeepEquals(DTContentInfo)
| Edit this page View Source

DeepEquals(DTEntityInfo)

Compares to another DTEntityInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTEntityInfo other)
Parameters
Type Name Description
DTEntityInfo other

The other DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.DeepEquals(DTEntityInfo)
| Edit this page View Source

DeepEquals(DTNamedEntityInfo)

Compares to another DTNamedEntityInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTNamedEntityInfo other)
Parameters
Type Name Description
DTNamedEntityInfo other

The other DTNamedEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.DeepEquals(DTNamedEntityInfo)
| Edit this page View Source

DeepEquals(DTRelationshipInfo)

Compares to another DTRelationshipInfo object, recursing through the entire subtree of object properties.

Declaration
public virtual bool DeepEquals(DTRelationshipInfo other)
Parameters
Type Name Description
DTRelationshipInfo other

The other DTRelationshipInfo object to compare to.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

Equals(DTContentInfo)

Compares to another DTContentInfo object.

Declaration
public override bool Equals(DTContentInfo other)
Parameters
Type Name Description
DTContentInfo other

The other DTContentInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.Equals(DTContentInfo)
| Edit this page View Source

Equals(DTEntityInfo)

Compares to another DTEntityInfo object.

Declaration
public override bool Equals(DTEntityInfo other)
Parameters
Type Name Description
DTEntityInfo other

The other DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.Equals(DTEntityInfo)
| Edit this page View Source

Equals(DTNamedEntityInfo)

Compares to another DTNamedEntityInfo object.

Declaration
public override bool Equals(DTNamedEntityInfo other)
Parameters
Type Name Description
DTNamedEntityInfo other

The other DTNamedEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTContentInfo.Equals(DTNamedEntityInfo)
| Edit this page View Source

Equals(DTRelationshipInfo)

Compares to another DTRelationshipInfo object.

Declaration
public virtual bool Equals(DTRelationshipInfo other)
Parameters
Type Name Description
DTRelationshipInfo other

The other DTRelationshipInfo object to compare to.

Returns
Type Description
bool

True if equal.

Operators

| Edit this page View Source

operator ==(DTRelationshipInfo, DTRelationshipInfo)

Determines whether two DTRelationshipInfo objects are equal.

Declaration
public static bool operator ==(DTRelationshipInfo x, DTRelationshipInfo y)
Parameters
Type Name Description
DTRelationshipInfo x

One DTRelationshipInfo object to compare.

DTRelationshipInfo y

Another DTRelationshipInfo object to compare to the first.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

operator !=(DTRelationshipInfo, DTRelationshipInfo)

Determines whether two DTRelationshipInfo objects are not equal.

Declaration
public static bool operator !=(DTRelationshipInfo x, DTRelationshipInfo y)
Parameters
Type Name Description
DTRelationshipInfo x

One DTRelationshipInfo object to compare.

DTRelationshipInfo y

Another DTRelationshipInfo object to compare to the first.

Returns
Type Description
bool

True if not equal.

Implements

IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX