Skip to main content

CkTypeAssociationGraph

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DependencyGraph

Represents an association assigned to a type in the graph model.

public class CkTypeAssociationGraph

Inheritance Object → CkTypeAssociationGraph

Properties​

Returns the name of the association.

public string NavigationPropertyName { get; }

Property Value​

String

Multiplicity​

Returns the target multiplicity.

public MultiplicitiesDto Multiplicity { get; }

Property Value​

MultiplicitiesDto

CkRoleId​

Gets or sets the association role id.

public CkId<CkAssociationRoleId> CkRoleId { get; }

Property Value​

CkId<CkAssociationRoleId>

OriginCkTypeId​

Gets or sets the origin CK type id.

public CkId<CkTypeId> OriginCkTypeId { get; }

Property Value​

CkId<CkTypeId>

TargetCkTypeId​

Gets or sets the target CK type id.

public CkId<CkTypeId> TargetCkTypeId { get; }

Property Value​

CkId<CkTypeId>

TargetAttributes​

Gets or sets a list of attributes of the target ck type id, that are referential integrity attributes

public IReadOnlyCollection<CkId<CkAttributeId>> TargetAttributes { get; }

Property Value​

IReadOnlyCollection<CkId<CkAttributeId>>

Constructors​

CkTypeAssociationGraph(String, MultiplicitiesDto, CkId<CkTypeId>, CkTypeAssociationDto)​

Creates a new instance of CkTypeAssociationGraph.

public CkTypeAssociationGraph(string navigationPropertyName, MultiplicitiesDto multiplicity, CkId<CkTypeId> originCkTypeId, CkTypeAssociationDto ckTypeAssociationDto)

Parameters​

navigationPropertyName String
Corresponding inbound/outbound name

multiplicity MultiplicitiesDto
The multiplicity of the target

originCkTypeId CkId<CkTypeId>
Origin type id

ckTypeAssociationDto CkTypeAssociationDto

CkTypeAssociationGraph(String, MultiplicitiesDto, CkId<CkAssociationRoleId>, CkId<CkTypeId>, CkId<CkTypeId>, IReadOnlyCollection<CkId<CkAttributeId>>)​

Creates a new instance of CkTypeAssociationGraph.

public CkTypeAssociationGraph(string navigationPropertyName, MultiplicitiesDto multiplicity, CkId<CkAssociationRoleId> ckRoleId, CkId<CkTypeId> originCkTypeId, CkId<CkTypeId> targetCkTypeId, IReadOnlyCollection<CkId<CkAttributeId>> targetAttributes)

Parameters​

navigationPropertyName String
Corresponding inbound/outbound name

multiplicity MultiplicitiesDto
The multiplicity of the target

ckRoleId CkId<CkAssociationRoleId>

originCkTypeId CkId<CkTypeId>

targetCkTypeId CkId<CkTypeId>

targetAttributes IReadOnlyCollection<CkId<CkAttributeId>>