Permalink
Browse files

updated readme

  • Loading branch information...
riccardone committed Mar 17, 2018
1 parent 695c924 commit 577e87f1d223cee6e084811d9a44d3a5bcb71f8b
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
@@ -27,9 +27,9 @@ PM> Install-Package Evento.Repository
The IDomainRepository interface expose two methods: 'Save' and GetById. The Save method take an IAggregate as parameter and a correlationId.
The correlationId is used to link toghether the events that are part of the same conversation. It defines the AggregateId and when the events are stored in EventStore it is used to define the StreamId.
example creating an EventStoreDomainRepository
example creating an EventStoreDomainRepository with the word 'domain' as category
```c#
var repository = new EventStoreDomainRepository("MyApp", Configuration.CreateConnection("MyAdapterConnection"));
var repository = new EventStoreDomainRepository("domain", Configuration.CreateConnection("MyAdapterConnection"));
```
# Use AggregateBase and IAggregate to build your Aggregates

0 comments on commit 577e87f

Please sign in to comment.