Skip to main content

CkAssociationRoleGraph

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DependencyGraph

Represents an association role in the dependency graph

public class CkAssociationRoleGraph : CkTypeWithAttributesGraph

Inheritance Object → CkTypeWithAttributesGraph → CkAssociationRoleGraph

Properties​

CkRoleId​

Returns the ck association id of the association role.

public CkId<CkAssociationRoleId> CkRoleId { get; }

Property Value​

CkId<CkAssociationRoleId>

InboundName​

Name of the association for inbound references (e. g. Children)

public string InboundName { get; }

Property Value​

String

OutboundName​

Name of the association for outbound references (e. g. Parent)

public string OutboundName { get; }

Property Value​

String

InboundMultiplicity​

Multiplicity of the inbound association

public MultiplicitiesDto InboundMultiplicity { get; }

Property Value​

MultiplicitiesDto

OutboundMultiplicity​

Multiplicity of the outbound association

public MultiplicitiesDto OutboundMultiplicity { get; }

Property Value​

MultiplicitiesDto

Description​

An optional description of the association role

public string Description { get; set; }

Property Value​

String

DefinedAttributes​

Gets or sets a list of attributes that are defined by the current type

public IReadOnlyCollection<CkTypeAttributeDto> DefinedAttributes { get; }

Property Value​

IReadOnlyCollection<CkTypeAttributeDto>

AllAttributes​

Gets or sets a list of attributes including inherited ones.

public IReadOnlyDictionary<CkId<CkAttributeId>, CkTypeAttributeGraph> AllAttributes { get; }

Property Value​

IReadOnlyDictionary<CkId<CkAttributeId>, CkTypeAttributeGraph>

AllAttributesByName​

Gets or sets a list of attributes including inherited ones.

public IReadOnlyDictionary<string, CkTypeAttributeGraph> AllAttributesByName { get; }

Property Value​

IReadOnlyDictionary<String, CkTypeAttributeGraph>

Constructors​

CkAssociationRoleGraph(CkId<CkAssociationRoleId>, CkAssociationRoleDto)​

Creates a new instance of CkAssociationRoleGraph.

public CkAssociationRoleGraph(CkId<CkAssociationRoleId> ckAssociationCkRoleId, CkAssociationRoleDto associationRoleDto)

Parameters​

ckAssociationCkRoleId CkId<CkAssociationRoleId>

associationRoleDto CkAssociationRoleDto

CkAssociationRoleGraph(CkId<CkAssociationRoleId>, String, String, MultiplicitiesDto, MultiplicitiesDto, IReadOnlyCollection<CkTypeAttributeDto>, IReadOnlyDictionary<CkId<CkAttributeId>, CkTypeAttributeGraph>, String)​

Creates a new instance of CkAssociationRoleGraph.

public CkAssociationRoleGraph(CkId<CkAssociationRoleId> ckRoleId, string inboundName, string outboundName, MultiplicitiesDto inboundMultiplicity, MultiplicitiesDto outboundMultiplicity, IReadOnlyCollection<CkTypeAttributeDto> definedAttributes, IReadOnlyDictionary<CkId<CkAttributeId>, CkTypeAttributeGraph> allAttributes, string description)

Parameters​

ckRoleId CkId<CkAssociationRoleId>

inboundName String

outboundName String

inboundMultiplicity MultiplicitiesDto

outboundMultiplicity MultiplicitiesDto

definedAttributes IReadOnlyCollection<CkTypeAttributeDto>

allAttributes IReadOnlyDictionary<CkId<CkAttributeId>, CkTypeAttributeGraph>

description String