ActualVersion
public readonly record struct ActualVersion : IComparable<ActualVersion>, IComparableRepresents the actual version discovered during persistence or conflict inspection.
Members (16)
- constructorActualVersion
public ActualVersion(ConcurrencyVersion version, bool exists = true)Initializes a new instance of the `ActualVersion` struct.
- version: ConcurrencyVersion
- The actual numeric concurrency version discovered in storage or memory.
- exists: bool
- A value indicating whether the entity exists in storage.
- constructorActualVersion
public ActualVersion(long version, bool exists = true)Initializes a new instance of the `ActualVersion` struct from a raw numeric value.
- version: long
- The raw 64-bit integer version discovered in storage.
- exists: bool
- A value indicating whether the entity exists in storage.
- methodCompareTo
public int CompareTo(ActualVersion other)Inherits documentation from base type or interface.
- other: ActualVersion
- methodCompareTo
public int CompareTo(object? obj)Inherits documentation from base type or interface.
- obj: object?
Exceptions: ArgumentException: `obj` is not an instance of `ActualVersion`
- methodFrom
public static ActualVersion From(ConcurrencyVersion version)Creates an actual version instance from the specified `ConcurrencyVersion`.
- version: ConcurrencyVersion
- The concurrency version discovered in storage.
Returns: A new `ActualVersion` instance indicating that the entity exists.
- methodFrom
public static ActualVersion From(long version)Creates an actual version instance from the specified numeric version value.
- version: long
- The 64-bit integer representing the actual version value.
Returns: A new `ActualVersion` instance indicating that the entity exists.
- methodToString
public override string ToString()Inherits documentation from base type or interface.
- methodimplicit operator ActualVersion
public static implicit operator ActualVersion(ConcurrencyVersion version)Converts a `ConcurrencyVersion` to an `ActualVersion`.
- version: ConcurrencyVersion
- The concurrency version to convert.
Returns: A new `ActualVersion` instance wrapping the specified concurrency version.
- methodimplicit operator ActualVersion
public static implicit operator ActualVersion(long value)Converts a 64-bit integer value to an `ActualVersion`.
- value: long
- The raw version value to convert.
Returns: A new `ActualVersion` instance wrapping the specified 64-bit integer version value.
- methodoperator <
public static bool operator <(ActualVersion left, ActualVersion right)Determines whether the left actual version is less than the right actual version.
- left: ActualVersion
- The left actual version to compare.
- right: ActualVersion
- The right actual version to compare.
Returns: `true` if `left` is less than `right`; otherwise, `false`.
- methodoperator <=
public static bool operator <=(ActualVersion left, ActualVersion right)Determines whether the left actual version is less than or equal to the right actual version.
- left: ActualVersion
- The left actual version to compare.
- right: ActualVersion
- The right actual version to compare.
Returns: `true` if `left` is less than or equal to `right`; otherwise, `false`.
- methodoperator >
public static bool operator >(ActualVersion left, ActualVersion right)Determines whether the left actual version is greater than the right actual version.
- left: ActualVersion
- The left actual version to compare.
- right: ActualVersion
- The right actual version to compare.
Returns: `true` if `left` is greater than `right`; otherwise, `false`.
- methodoperator >=
public static bool operator >=(ActualVersion left, ActualVersion right)Determines whether the left actual version is greater than or equal to the right actual version.
- left: ActualVersion
- The left actual version to compare.
- right: ActualVersion
- The right actual version to compare.
Returns: `true` if `left` is greater than or equal to `right`; otherwise, `false`.
- propertyExists
public bool Exists { get; }Gets a value indicating whether the entity exists in storage.
- propertyVersion
public ConcurrencyVersion Version { get; }Gets the actual concurrency version discovered.
- fieldNotFound
public static readonly ActualVersion NotFoundRepresents an actual version indicating that the target entity was not found or has been deleted.