Table of Contents

Class NameEntity

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

An Entity that has a name field.

public abstract class NameEntity : Entity, IEntity, IComparable, IIdentifiable
Inheritance
NameEntity
Implements
Derived
Inherited Members

Constructors

NameEntity()

Initializes a new instance of the NameEntity class.

protected NameEntity()

NameEntity(Id?)

Initializes a new instance of the NameEntity class.

protected NameEntity(Id? id)

Parameters

id Id

The Id.

NameEntity(Id?, string?)

Initializes a new instance of the NameEntity class.

protected NameEntity(Id? id, string? name)

Parameters

id Id

The Id.

name string

The name.

NameEntity(NameEntity)

Initializes a new instance of the NameEntity class.

protected NameEntity(NameEntity nameEntity)

Parameters

nameEntity NameEntity

The text entity.

Properties

Name

Gets or sets the name of this entity which identifies it and is used when displaying this entity.

public virtual string? Name { get; set; }

Property Value

string

the name of the entity

Methods

CompareTo(object?)

Compares the current instance with another object of the same type.

public override int CompareTo(object? obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

See Also