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