Zum Hauptinhalt springen

CkCompiledModelRoot

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects

The root object of the compiled version of a CK model.

public class CkCompiledModelRoot : CkModelRootBase

Inheritance Object → CkModelPropertiesDto → CkModelRootBase → CkCompiledModelRoot

Fields​

CkCompiledModelSchemaUri​

The URI of the schema for the compiled CK model.

public static string CkCompiledModelSchemaUri;

Properties​

SchemaUri​

The URI of the schema for the compiled CK model used for serialization.

public string SchemaUri { get; }

Property Value​

String

Dependencies​

Gets or sets the dependencies of the model.

public List<CkModelId> Dependencies { get; set; }

Property Value​

List<CkModelId>

DependencyRanges​

Range-retaining dependencies (CK v2): the declared range plus floor of every direct dependency. Only written by a compiler running with range retention (OctoCkRangeRetention=true); then references into dependencies are major-qualified (System@2/Entity-1) and a resolver accepts any installed version inside the range and at or above the floor. null for classic exact-pinned models, whose CkCompiledModelRoot.Dependencies keep their exact-match semantics. Use CkCompiledModelRoot.GetResolutionRanges() to resolve either shape.

public List<CkModelDependencyDto> DependencyRanges { get; set; }

Property Value​

List<CkModelDependencyDto>

Compatibility​

The acknowledgements the author declared for this release (omitted when empty), so the publish gate can enforce the acknowledge rule from the compiled model alone.

public CkCompatibilityDto Compatibility { get; set; }

Property Value​

CkCompatibilityDto

MinEngineVersion​

CK v2 (F1.1-S6): the lowest construction kit engine version that can read this model. Written by the compiler for ckLanguage: 2 and range-retaining output (null = any engine, so v1 output is unchanged). An engine refuses to import a model whose value is above its own version (message 126). Engines before CK v2 ignore the key; they never see such models because those are published under the ck-models/v3/ catalog path.

public string MinEngineVersion { get; set; }

Property Value​

String

IsRangeRetaining​

True when the model was compiled with range retention (CkCompiledModelRoot.DependencyRanges is set).

public bool IsRangeRetaining { get; }

Property Value​

Boolean

Migrations​

Gets or sets the inline migration data for this compiled model. When present, allows any service to run CK model migrations without needing the CK model NuGet package as a reference.

public CkCompiledMigrationDataDto Migrations { get; set; }

Property Value​

CkCompiledMigrationDataDto

Types​

Returns types of the model

public List<CkCompiledTypeDto> Types { get; set; }

Property Value​

List<CkCompiledTypeDto>

AssociationRoles​

Returns associations of the model

public List<CkAssociationRoleDto> AssociationRoles { get; set; }

Property Value​

List<CkAssociationRoleDto>

Attributes​

Returns attributes of the model

public List<CkAttributeDto> Attributes { get; set; }

Property Value​

List<CkAttributeDto>

Records​

Returns records of the model that are used for complex attributes

public List<CkRecordDto> Records { get; set; }

Property Value​

List<CkRecordDto>

Enums​

Returns enums of the model used for enum attributes

public List<CkEnumDto> Enums { get; set; }

Property Value​

List<CkEnumDto>

Interfaces​

CK v2: returns the interfaces of the model. null when the model declares none.

public List<CkInterfaceDto> Interfaces { get; set; }

Property Value​

List<CkInterfaceDto>

ModelId​

Gets or sets the model id.

public CkModelId ModelId { get; set; }

Property Value​

CkModelId

Description​

An optional description of the model

public string Description { get; set; }

Property Value​

String

CkLanguage​

CK v2: the CK language version of the model. null (omitted) means 1. Version 2 enables interfaces, implements, attribute access, methods, visibility, derivable (whose default it changes to Model) and targetCkInterfaceId. A model with a version above CkModelPropertiesDto.MaxSupportedCkLanguage is rejected (message 91).

public Nullable<int> CkLanguage { get; set; }

Property Value​

Nullable<Int32>

EffectiveCkLanguage​

The effective CK language version (CkModelPropertiesDto.CkLanguage or 1).

public int EffectiveCkLanguage { get; }

Property Value​

Int32

Constructors​

CkCompiledModelRoot()​

public CkCompiledModelRoot()

Methods​

GetResolutionRanges()​

The ranges a resolver must satisfy for this model's dependencies: the effective ranges of CkCompiledModelRoot.DependencyRanges for a range-retaining model, otherwise the exact pins of CkCompiledModelRoot.Dependencies.

public IReadOnlyList<CkModelIdVersionRange> GetResolutionRanges()

Returns​

IReadOnlyList<CkModelIdVersionRange>