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
IdThe 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
IdThe id.
version
long?The version.
name
stringThe name.
externalReference
stringThe externalReference.
propertyType
SupportedPropertyTypeThe propertyType.
isVisible
bool?The isVisible.
minLength
intThe minLength.
maxLength
intThe maxLength.
propertySet
PropertySetThe propertySet.
entityTypes
List<CustomPropertyEntityType>The entityTypes.
Property(Property)
Initializes a new instance of the Property class.
public Property(Property property)
Parameters
property
PropertyThe 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
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()