LCOV - code coverage report
Current view: top level - Cqrs/Events - EventData.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 2 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="cdmdotnet Limited">
       4             : // //   Copyright cdmdotnet Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using System.Data.Linq.Mapping;
      11             : using System.Runtime.Serialization;
      12             : 
      13             : namespace Cqrs.Events
      14             : {
      15             :         [Serializable]
      16             :         [DataContract]
      17             :         [Table(Name = "EventStore")]
      18             :         public class EventData
      19           0 :         {
      20             :                 [DataMember]
      21             :                 [Column(CanBeNull = false, DbType = "text NOT NULL")]
      22             :                 public object Data { get; set; }
      23             : 
      24             :                 [DataMember]
      25             :                 [Column(IsPrimaryKey = true)]
      26             :                 public Guid EventId { get; set; }
      27             : 
      28             :                 [DataMember]
      29             :                 [Column(CanBeNull = false)]
      30             :                 public string EventType { get; set; }
      31             : 
      32             :                 [DataMember]
      33             :                 [Column(CanBeNull = false)]
      34             :                 public string AggregateId { get; set; }
      35             : 
      36             :                 [DataMember]
      37             :                 [Column(CanBeNull = false)]
      38             :                 public Guid AggregateRsn { get; set; }
      39             : 
      40             :                 [DataMember]
      41             :                 [Column(CanBeNull = false)]
      42             :                 public long Version { get; set; }
      43             : 
      44             :                 [DataMember]
      45             :                 [Column(CanBeNull = false)]
      46             :                 public DateTime Timestamp { get; set; }
      47             : 
      48             :                 [DataMember]
      49             :                 [Column(CanBeNull = false)]
      50             :                 public Guid CorrelationId { get; set; }
      51             : 
      52           0 :                 public EventData()
      53             :                 {
      54             :                         Timestamp = DateTime.UtcNow;
      55             :                 }
      56             :         }
      57             : }

Generated by: LCOV version 1.10