示例#1
0
 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);
     }));
 }
示例#2
0
文件: User.cs 项目: zanderphh/Shop
 private void Handle(UserParentClearedEvent evnt)
 {
     _parentId = Guid.Empty;
 }