Exemplo n.º 1
0
 public void Apply(IReadModelContext context, IDomainEvent <本, 本のID, 本を返した> domainEvent)
 {
     本のID   = domainEvent.AggregateIdentity;
     利用者のID = null;
     貸出期間自  = null;
     貸出期間至  = null;
 }
Exemplo n.º 2
0
 public void Apply(IReadModelContext context, IDomainEvent <本, 本のID, 本を借りた> domainEvent)
 {
     本のID   = domainEvent.AggregateIdentity;
     利用者のID = domainEvent.AggregateEvent.利用者のID;
     貸出期間自  = domainEvent.AggregateEvent.貸出期間.貸出期間自;
     貸出期間至  = domainEvent.AggregateEvent.貸出期間.貸出期間至;
 }