Class EntityObjectJsonConverter.JsonSchemaRelation
- Namespace
- TimeCockpit.Data.JsonConverters
- Assembly
- TimeCockpit.Data.dll
Initializes a new instance of the JsonSchemaRelation index.
public class JsonSchemaRelation
- Inheritance
-
ObjectEntityObjectJsonConverter.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
nameStringname of the relation.
contentMapIndexInt32index for the content map.
targetsEntityObjectJsonConverter.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
Methods
GetIndexForTargetType(String)
Gets the index of the schema given by the name.
public int GetIndexForTargetType(string targetModelEntityName)
Parameters
targetModelEntityNameStringname of the schema target to find.
Returns
- Int32
the index of the schema with given name.