Skip to main content
Version: 2.7

EntityTypes

Entity type nodes declare an entity with its fields. It can be used as an entity schema to create new entities outside of entity collections.

Entity Fields

An entity field describes a property of the entity with its data type and size.

AttributeDescriptionData Type
NameName of the field. It is recommended to use a unique name for each field.System.String
DataTypeSpecifies the data type of the field.System.String
LengthIf the data type is a string, this can be set to the fixed string size.System.Int32
ArraySizeIf the data type is an array, this can be set to the fixed array size.System.Int32
IsKeyFlag if the field is a key valueSystem.Boolean
NOTE

Note that the entity types always require a field called Id of type System.Guid as a main key. This field should not be deleted.

Example:

The following example defines a string array StringArray, where as the array size comprehends three elements of strings with length of 25 characters.

"EntityTypes": [
{
"Id": "fa006cb3-05fc-4c29-a511-cc83dcf99a6b",
"Name": "EntityTypeA",
"Fields": [
{
"Name": "Id",
"DataType": "System.Guid",
"IsKey": true
},
{
"Name": "Value",
"DataType": "System.Double"
},
{
"Length": 255,
"Name": "Description",
"DataType": "System.String"
},
{
"ArraySize": 3,
"Length": 25,
"Name": "StringArray",
"DataType": "System.String[]"
}
],
"Properties": []
}
],