Class MemoryId
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Populates IEntityId property with a value that allows to distinguish it from an entity that is not yet added to the database and prevents form an accidental db commit.
public class MemoryId : Id, IComparable<Id>- Inheritance
- 
      
      
      MemoryId
- Implements
- Inherited Members
Constructors
MemoryId()
public MemoryId()Methods
GetValue()
Internal method that gets the boxed value of the underlying identifier.
public override object GetValue()Returns
- object
- value of the database identifier. 
SerializeId(Utf8JsonWriter, bool)
An method used to write the json representation of the id to the provided Utf8JsonWriter.
public override void SerializeId(Utf8JsonWriter writer, bool asPropertyName = false)Parameters
- writerUtf8JsonWriter
- The Utf8JsonWriter to write the json representation of the id to. 
- asPropertyNamebool
- A bool indicating if the Id is to be a property name or a value. The default is value. 
ToString()
public override string ToString()