public Task <AsyncTaskResult> HandleAsync(UserParentClearedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { ParentId = Guid.Empty, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.UserTable); })); }
private void Handle(UserParentClearedEvent evnt) { _parentId = Guid.Empty; }