Class IdentityId
- Namespace
- Cratis.Chronicle.Identities
- Assembly
- Cratis.Chronicle.dll
Represents an identifier for details holding actual Identity.
public record IdentityId : ConceptAs<Guid>, IComparable<ConceptAs<Guid>>, IComparable<Guid>, IComparable, IEquatable<ConceptAs<Guid>>, IEquatable<IdentityId>
- Inheritance
-
IdentityId
- Implements
- Inherited Members
- Extension Methods
Constructors
IdentityId(IdentityId)
protected IdentityId(IdentityId original)
Parameters
originalIdentityId
IdentityId(Guid)
Represents an identifier for details holding actual Identity.
public IdentityId(Guid Value)
Parameters
ValueGuidThe actual value.
Fields
NotSet
Gets the IdentityId representing "not set".
public static readonly IdentityId NotSet
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out Guid)
public void Deconstruct(out Guid Value)
Parameters
ValueGuid
Equals(IdentityId?)
public virtual bool Equals(IdentityId? other)
Parameters
otherIdentityId
Returns
Equals(ConceptAs<Guid>?)
public override sealed bool Equals(ConceptAs<Guid>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
New()
Creates a new IdentityId.
public static IdentityId New()
Returns
- IdentityId
Newly created IdentityId.
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(IdentityId?, IdentityId?)
public static bool operator ==(IdentityId? left, IdentityId? right)
Parameters
leftIdentityIdrightIdentityId
Returns
implicit operator IdentityId(Guid)
Implicitly convert from Guid to IdentityId.
public static implicit operator IdentityId(Guid value)
Parameters
valueGuidGuid to convert from.
Returns
operator !=(IdentityId?, IdentityId?)
public static bool operator !=(IdentityId? left, IdentityId? right)
Parameters
leftIdentityIdrightIdentityId