Class Tag
A key-value label attached to an event that enables tag-based querying.
public record Tag : IEquatable<Tag>
- Inheritance
-
Tag
- Implements
- Inherited Members
Remarks
Tags create a secondary index alongside the event-type index. Use them to scope queries to a specific entity identity, for example:
new Tag("courseId", courseId.ToString())
Within a QueryItem multiple tags are combined with AND logic — an event must carry all specified tags to match.
Constructors
Tag(string, string)
A key-value label attached to an event that enables tag-based querying.
public Tag(string Key, string Value)
Parameters
KeystringThe tag key (e.g.
"courseId","studentId").ValuestringThe tag value (e.g. a GUID or domain identifier as string).
Remarks
Tags create a secondary index alongside the event-type index. Use them to scope queries to a specific entity identity, for example:
new Tag("courseId", courseId.ToString())
Within a QueryItem multiple tags are combined with AND logic — an event must carry all specified tags to match.
Properties
Key
The tag key (e.g. "courseId", "studentId").
public string Key { get; init; }
Property Value
Value
The tag value (e.g. a GUID or domain identifier as string).
public string Value { get; init; }