gautema / CQRSlite

A lightweight framework to help creating CQRS and Eventsourcing applications in C#
Other
1.1k stars 266 forks source link

Why the command needs to tell the expected version? #40

Closed Narvalex closed 7 years ago

gautema commented 7 years ago

This is to support optimistic concurrency

Narvalex commented 7 years ago

I understand, but, shouldn't it be optional? Since there are lots of event sourcing implementations that does not wraps the optimistic concurrency check all the way from the read model, but from the aggregate hydration, like the Microsoft's Patterns a Practice CQRS Journey?

gautema commented 7 years ago

It is optional. The value is nullable.

Narvalex commented 7 years ago

Fair enough. Thanks