Class EventData
Captures all the data relevant to an IEvent<TAuthenticationToken> for an IEventStore<TAuthenticationToken> to persist.
Inheritance
Inherited Members
Namespace: Cqrs.Events
Assembly: Cqrs.dll
Syntax
[Serializable]
[DataContract]
[Table(Name = "EventStore")]
public class EventData
Constructors
EventData()
Instantiates a new instance of EventData.
Declaration
public EventData()
Properties
AggregateId
The globally identifier of the IAggregateRoot<TAuthenticationToken> , meaning it also includes System.Type information.
Declaration
[DataMember]
[Column(CanBeNull = false)]
public string AggregateId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AggregateRsn
The identifier of the IAggregateRoot<TAuthenticationToken>.
Declaration
[DataMember]
[Column(CanBeNull = false)]
public Guid AggregateRsn { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
CorrelationId
An identifier used to group together several IMessage. Any IMessage with the same CorrelationId were triggered by the same initiating request.
Declaration
[DataMember]
[Column(CanBeNull = false)]
public Guid CorrelationId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Data
The data/content of the IEvent<TAuthenticationToken>.
Declaration
[DataMember]
[Column(CanBeNull = false, DbType = "text NOT NULL")]
public object Data { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
EventId
The identifier of the IEvent<TAuthenticationToken>.
Declaration
[DataMember]
[Column(IsPrimaryKey = true)]
public Guid EventId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
EventType
The System.Type of the IEvent<TAuthenticationToken>
Declaration
[DataMember]
[Column(CanBeNull = false)]
public string EventType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Timestamp
The date and time the event was raised or published.
Declaration
[DataMember]
[Column(CanBeNull = false)]
public DateTime Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Version
The new version number the targeted IAggregateRoot<TAuthenticationToken> or ISaga<TAuthenticationToken> that raised this.
Declaration
[DataMember]
[Column(CanBeNull = false)]
public long Version { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |