fromEvent

Creates a version increment which sets the new version from the given event.

Such an increment strategy is applied to the Entity types which represent a sequence of events.

One example of such entity is Aggregate. As a sequence of events, an Aggregate has no own versioning system, thus inherits the versions of the applied events. In other words, the current version of an Aggregate is the version of the last applied event.