public Task <AsyncTaskResult> HandleAsync(CommentStatisticInfoChangedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { Rate = evnt.StatisticInfo.Rate, RateCount = evnt.StatisticInfo.RateCount, QualityRate = evnt.StatisticInfo.QualityRate, PriceRate = evnt.StatisticInfo.PriceRate, ExpressRate = evnt.StatisticInfo.ExpressRate, DescribeRate = evnt.StatisticInfo.DescribeRate, Version = evnt.Version }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.GoodsTable); })); }
private void Handle(CommentStatisticInfoChangedEvent evnt) { _commentStatisticInfo = evnt.StatisticInfo; }