Table of Contents

Class Property

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

The custom property of an entity that is customizable.

public class Property : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion
Inheritance
Property
Implements
Inherited Members

Constructors

Property()

Initializes a new instance of the Property class.

public Property()

Property(Id?)

Initializes a new instance of the Property class.

public Property(Id? id)

Parameters

id Id

The id.

Property(Id?, long?, string?, string?, SupportedPropertyType, bool?, int, int, PropertySet?, List<CustomPropertyEntityType>?)

Initializes a new instance of the Property class.

public Property(Id? id, long? version, string? name, string? externalReference, SupportedPropertyType propertyType, bool? isVisible, int minLength, int maxLength, PropertySet? propertySet, List<CustomPropertyEntityType>? entityTypes)

Parameters

id Id

The id.

version long?

The version.

name string

The name.

externalReference string

The externalReference.

propertyType SupportedPropertyType

The propertyType.

isVisible bool?

The isVisible.

minLength int

The minLength.

maxLength int

The maxLength.

propertySet PropertySet

The propertySet.

entityTypes List<CustomPropertyEntityType>

The entityTypes.

Property(Property)

Initializes a new instance of the Property class.

public Property(Property property)

Parameters

property Property

The property.

Properties

EntityTypes

Gets or sets the entity types supported by the Property.

public List<CustomPropertyEntityType>? EntityTypes { get; set; }

Property Value

List<CustomPropertyEntityType>

The entity types supported by the Property.

ExternalReference

Gets or sets the External Reference of the Property.

public string? ExternalReference { get; set; }

Property Value

string

The External Reference.

IsVisible

Gets or sets a value indicating whether the Property is visible or not to the UI.

public bool? IsVisible { get; set; }

Property Value

bool?

The IsVisible flag.

MaxLength

Gets or sets the maximum length of the Property.

public int MaxLength { get; set; }

Property Value

int

The maximum length.

MinLength

Gets or sets the minimum length of the Property.

public int MinLength { get; set; }

Property Value

int

The minimum length.

Name

Gets or sets the Name of the Property.

public string? Name { get; set; }

Property Value

string

The Name.

PropertySet

Gets or sets the PropertySet that this Property belongs to.

public PropertySet? PropertySet { get; set; }

Property Value

PropertySet

The PropertySet.

PropertyType

Gets or sets the support type of the Property.

public SupportedPropertyType PropertyType { get; set; }

Property Value

SupportedPropertyType

The SupportedPropertyType.

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.

PopulateDefaults()

Populates the default values.

public void PopulateDefaults()