public async Task When(Step1Executed e) { await _writer.Update(e.Id, x => { x.Quantity = e.Quantity; x.DueDate = e.DueDate; }); }
public void When(PackageAdded e) { writer.Update <OrdersView>(e.Id, v => { v.Version = e.Version; v.UpdatedOn = e.CreatedOn; v.PackageIds = string.IsNullOrWhiteSpace(v.PackageIds) ? e.PackageId.ToString() : string.Join(',', new[] { v.PackageIds, e.PackageId.ToString() }); }); }
public async Task When(PmToProjectAssigned e) { await _writer.Update(e.Id, x => x.PmId = e.PmId); }