Skip to content

Commit

Permalink
Version field add to Aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpaulovich committed Mar 6, 2018
1 parent 5fc9c26 commit 28ca8e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/WebAPI/Acerola.Domain/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public class Account : Entity, IAggregateRoot
{
public TransactionCollection Transactions { get; private set; }
public int Version { get; private set; }

public Account()
{
Expand Down
1 change: 1 addition & 0 deletions source/WebAPI/Acerola.Domain/Customers/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class Customer : Entity, IAggregateRoot
public Name Name { get; private set; }
public PIN PIN { get; private set; }
public AccountCollection Accounts { get; private set; }
public int Version { get; private set; }

public Customer()
{
Expand Down
1 change: 1 addition & 0 deletions source/WebAPI/Acerola.Domain/IAggregateRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
{
public interface IAggregateRoot : IEntity
{
int Version { get; }
}
}

0 comments on commit 28ca8e1

Please sign in to comment.