Reputation: 113
I am using a session to interact with a CommonDomain.Persistence.IRepository
. My save command is CommmonDomain.Persistence.RespositoryExtensions:
public static void Save(this IRepository repository, IAggregate aggregate, Guid commitId).
Every time I try save the new domain object. I get a ConflictingCommandException which is a concurrency exception. Is there a common reason that this is caused?
Upvotes: -2
Views: 99
Reputation: 113
The only time I've seen this error spawned is when the domain object and the associated events do not have the same domain id. Verify you have the same id going to both the event and the object.
Upvotes: 0