Skip to content

Commit

Permalink
Make entity properties virtual (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Lycken authored Oct 25, 2017
1 parent 08ac54f commit 78cdcb0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ public class EntityFrameworkEvent<TId, TStreamId> : IPersistedEvent<TStreamId>
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public TId EventId { get; set; }
public virtual TId EventId { get; set; }

[Required]
public DateTimeOffset Timestamp { get; set; }

[Index(Order = 1)]
[Required]
public TStreamId StreamId { get; set; }
public virtual TStreamId StreamId { get; set; }

[Required]
[Index(Order = 2)]
public long Version { get; set; }
public virtual long Version { get; set; }

[Required]
public string Type { get; set; }
public virtual string Type { get; set; }

[Required]
public byte[] Payload { get; set; }
public virtual byte[] Payload { get; set; }
}
}

0 comments on commit 78cdcb0

Please sign in to comment.