ncqrs/ncqrs — Issue #84: Applying EntitySourcedEvent should fail on duplicate EntityId
Author: marcofranssen
Created: 2011-10-31 13:38:40+00:00
State: open

In one of my aggregates I was applying by incident and entiyEvent twice on the same agregate root. When applying I applied the event twice with the same entityId. This should cause an exception because my entities within this aggregate aren't unique anymore now.

So there should be implemented an exception for applying two entities with the same id on one aggragate instance. So the entities will have unique id's within the aggregate.