Table of Contents

Class EntityObjectJsonConverter.JsonSchemaRelation

Namespace
TimeCockpit.Data.JsonConverters
Assembly
TimeCockpit.Data.dll

Initializes a new instance of the JsonSchemaRelation index.

public class JsonSchemaRelation
Inheritance
Object
EntityObjectJsonConverter.JsonSchemaRelation
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

JsonSchemaRelation(String, Int32, EntityObjectJsonConverter.JsonSchemaModelEntity[])

Initializes a new instance of the JsonSchemaRelation class.

public JsonSchemaRelation(string name, int contentMapIndex, EntityObjectJsonConverter.JsonSchemaModelEntity[] targets)

Parameters

name String

name of the relation.

contentMapIndex Int32

index for the content map.

targets EntityObjectJsonConverter.JsonSchemaModelEntity[]

possible target relations.

Properties

ContentMapIndex

Gets an index to the contentmap inside the entity object.

public int ContentMapIndex { get; }

Property Value

Int32

Name

Gets the name of the relation.

public string Name { get; }

Property Value

String

Targets

Gets the Targets collection. The list represents all possibly ModelEntity targets.

public EntityObjectJsonConverter.JsonSchemaModelEntity[] Targets { get; }

Property Value

EntityObjectJsonConverter.JsonSchemaModelEntity[]

Methods

GetIndexForTargetType(String)

Gets the index of the schema given by the name.

public int GetIndexForTargetType(string targetModelEntityName)

Parameters

targetModelEntityName String

name of the schema target to find.

Returns

Int32

the index of the schema with given name.