Class Entity
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
[ReportClass]
public abstract class Entity : IEntity, IComparable, IIdentifiable
- Inheritance
-
Entity
- Implements
- Derived
- Inherited Members
Constructors
Entity()
protected Entity()
Entity(Entity)
Initializes a new instance of the Entity class. Copy constructor to initializes a new instance of the Entity class.
protected Entity(Entity value)
Parameters
value
EntityThe value.
Entity(Id?)
protected Entity(Id? id)
Parameters
Properties
Id
public virtual Id? Id { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public abstract IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
CompareTo(object?)
Compares the current instance with another object of the same type.
public virtual int CompareTo(object? obj)
Parameters
obj
objectAn 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.
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
GetReadOnly()
Creates a new object that is a read-only copy of the current instance.
public virtual IEntity GetReadOnly()
Returns
Exceptions
- NotSupportedException
Not supported in the base class (overridden in derived classes).
IsSystemEntity()
Returns true if the class is a system entity, false otherwise.
public virtual bool IsSystemEntity()
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()