예제 #1
0
 private void Handle(PubCategoryUpdatedEvent evnt)
 {
     _name   = evnt.Name;
     _thumb  = evnt.Thumb;
     _isShow = evnt.IsShow;
     _sort   = evnt.Sort;
 }
 public Task <AsyncTaskResult> HandleAsync(PubCategoryUpdatedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             Name = evnt.Name,
             Thumb = evnt.Thumb,
             IsShow = evnt.IsShow,
             Sort = evnt.Sort,
             Version = evnt.Version
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.PubCategoryTable);
     }));
 }