Class TypedIdTriple
Represents a composite identifier consisting of an agency identifier, item identifier, item version, and item type.
Inheritance
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public sealed class TypedIdTriple : Tuple<IdentifierTriple, Guid>
Constructors
TypedIdTriple(IdentifierTriple, Guid)
Initializes a new instance of the TypedIdTriple class.
Declaration
public TypedIdTriple(IdentifierTriple identifier, Guid itemType)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | identifier | The identifier triple. |
Guid | itemType | The type of the item. |
Properties
AgencyId
Gets the agency identifier of the item.
Declaration
public string AgencyId { get; }
Property Value
Type | Description |
---|---|
System.String |
CompositeId
Gets the composite identifier triple of the item.
Declaration
public IdentifierTriple CompositeId { get; }
Property Value
Type | Description |
---|---|
IdentifierTriple |
Identifier
Gets the identifier of the item.
Declaration
public Guid Identifier { get; }
Property Value
Type | Description |
---|---|
Guid |
ItemType
Gets the type of the item.
Declaration
public Guid ItemType { get; }
Property Value
Type | Description |
---|---|
Guid | The type of the item. |
Version
Gets the version of the item.
Declaration
public long Version { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
Equals(Object)
Determines whether the specified
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |
Operators
Equality(TypedIdTriple, TypedIdTriple)
Implements the operator ==.
Declaration
public static bool operator ==(TypedIdTriple a, TypedIdTriple b)
Parameters
Type | Name | Description |
---|---|---|
TypedIdTriple | a | The left side. |
TypedIdTriple | b | The right side. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(TypedIdTriple, TypedIdTriple)
Implements the operator !=.
Declaration
public static bool operator !=(TypedIdTriple a, TypedIdTriple b)
Parameters
Type | Name | Description |
---|---|---|
TypedIdTriple | a | The left side. |
TypedIdTriple | b | The right side. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |