Home Id Struct
Post
Cancel

Id Struct

Definition

Namespace: EntityDb.Abstractions.ValueObjects
Assembly: EntityDb.Abstractions

Represents a unique identifier for an object.

1
public readonly struct Id : System.IEquatable<Id>

Inheritance: Object → ValueType

Constructors

Id(Guid) Represents a unique identifier for an object.

Properties

ValueThe backing value.

Methods

NewId() Returns a new, randomly-generated Id.
ToString() Returns a string representation of the value of this instance in registry format.
op_Implicit(Id) Implicitly converts an Id to a pointer.
op_Addition(Id, VersionNumber) Combine an Id and a VersionNumber into a Pointer.
This post is licensed under CC BY 4.0 by the author.