Table of Contents

Class ModelKey

Namespace
Cratis.Chronicle.Models
Assembly
Cratis.Chronicle.dll

Represents the unique identifier of an instance of an event source.

public record ModelKey : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<ModelKey>
Inheritance
ModelKey
Implements
Inherited Members

Constructors

ModelKey(string)

Represents the unique identifier of an instance of an event source.

public ModelKey(string Value)

Parameters

Value string

Actual value.

Fields

Unspecified

Gets the representation of an unspecified ModelKey.

public static readonly ModelKey Unspecified

Field Value

ModelKey

Properties

IsSpecified

Check whether or not the ModelKey is specified.

public bool IsSpecified { get; }

Property Value

bool

Operators

implicit operator ModelKey(EventSourceId)

Implicitly convert from EventSourceId to ModelKey.

public static implicit operator ModelKey(EventSourceId id)

Parameters

id EventSourceId

EventSourceId to convert from.

Returns

ModelKey

A converted ModelKey.

implicit operator EventSourceId(ModelKey)

Implicitly convert from ModelKey to EventSourceId.

public static implicit operator EventSourceId(ModelKey id)

Parameters

id ModelKey

ModelKey to convert from.

Returns

EventSourceId

A converted EventSourceId.

implicit operator ModelKey(Guid)

Implicitly convert from Guid to ModelKey.

public static implicit operator ModelKey(Guid id)

Parameters

id Guid

Guid to convert from.

Returns

ModelKey

A converted ModelKey.

implicit operator ModelKey(string)

Implicitly convert from string to ModelKey.

public static implicit operator ModelKey(string id)

Parameters

id string

string to convert from.

Returns

ModelKey

A converted ModelKey.