We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is possible load an aggregate in specific (old) version?
The text was updated successfully, but these errors were encountered:
There's currently no API for that.
You could do something like this to achieve it though. (rough pseudo code from looking at the source)
// Load events representing version var domainEvents = IEventStore.LoadEventsAsync(id) domainEvents = domainEvents.Where(e => e.AggregateSequenceNumber < selected version).ToList() // Apply to empty aggregate var aggregate = IAggregateFactory.CreateNewAggregateAsync(id) aggregate.ApplyEvents(domainEvents)
Sorry, something went wrong.
Duplicate of #906
No branches or pull requests
It is possible load an aggregate in specific (old) version?
The text was updated successfully, but these errors were encountered: