Class EntityObjectJsonConverter.JsonSchemaRelation
Initializes a new instance of the JsonSchemaRelation index.
Inheritance
System.Object
EntityObjectJsonConverter.JsonSchemaRelation
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.JsonConverters
Assembly: TimeCockpit.Data.dll
Syntax
public class JsonSchemaRelation
Constructors
JsonSchemaRelation(String, Int32, EntityObjectJsonConverter.JsonSchemaModelEntity[])
Initializes a new instance of the JsonSchemaRelation class.
Declaration
public JsonSchemaRelation(string name, int contentMapIndex, EntityObjectJsonConverter.JsonSchemaModelEntity[] targets)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | name of the relation. |
| System.Int32 | contentMapIndex | index for the content map. |
| EntityObjectJsonConverter.JsonSchemaModelEntity[] | targets | possible target relations. |
Properties
ContentMapIndex
Gets an index to the contentmap inside the entity object.
Declaration
public int ContentMapIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Name
Gets the name of the relation.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Targets
Gets the Targets collection. The list represents all possibly ModelEntity targets.
Declaration
public EntityObjectJsonConverter.JsonSchemaModelEntity[] Targets { get; }
Property Value
| Type | Description |
|---|---|
| EntityObjectJsonConverter.JsonSchemaModelEntity[] |
Methods
GetIndexForTargetType(String)
Gets the index of the schema given by the name.
Declaration
public int GetIndexForTargetType(string targetModelEntityName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | targetModelEntityName | name of the schema target to find. |
Returns
| Type | Description |
|---|---|
| System.Int32 | the index of the schema with given name. |