Class ShelfOrigin<T>
- Namespace
- XENBIT.ResQueServe.Abstractions.Models
- Assembly
- RQS.Abstractions.dll
Represents a typed origin definition for a Shelf entity. Provides identifying information about the source and an optional version.
public record ShelfOrigin<T> : ShelfOriginBase, IEquatable<ShelfOriginBase>, IEquatable<ShelfOrigin<T>> where T : IComparable<T>
Type Parameters
TThe data type used for versioning (e.g., int, long, Guid, DateTimeOffset). Must implement IComparable<T>.
- Inheritance
-
ShelfOrigin<T>
- Implements
- Inherited Members
Constructors
ShelfOrigin(string, string, ShelfVersion<T>?)
Represents a typed origin definition for a Shelf entity. Provides identifying information about the source and an optional version.
public ShelfOrigin(string Namespace, string Id, ShelfVersion<T>? Version)
Parameters
NamespacestringIdstringVersionShelfVersion<T>
Properties
Id
public string Id { get; init; }
Property Value
Namespace
public string Namespace { get; init; }
Property Value
Version
public ShelfVersion<T>? Version { get; init; }
Property Value
- ShelfVersion<T>
Methods
ToString()
Returns a string representation in the format: {Namespace}:{Id} (v{Version}) if a version is available.
public override string ToString()