Invoked after applying the parsed table update (delta) to this table. This is when user callbacks (such as OnInsert, OnUpdate, and OnDelete) are actually triggered for the affected rows. All operations should be complete before calling PostApply, so that data structures across all tables are fully updated before invoking user callbacks. Should be ca
(IEventContext context)
| 531 | /// Should be called after PreApply and Apply. |
| 532 | /// </summary> |
| 533 | void IRemoteTableHandle.PostApply(IEventContext context) |
| 534 | { |
| 535 | foreach (var (_, value) in wasInserted) |
| 536 | { |
| 537 | InvokeInsert(context, value); |
| 538 | } |
| 539 | if (!IsEventTable) |
| 540 | { |
| 541 | foreach (var (_, oldValue, newValue) in wasUpdated) |
| 542 | { |
| 543 | InvokeUpdate(context, oldValue, newValue); |
| 544 | } |
| 545 | foreach (var (_, value) in wasRemoved) |
| 546 | { |
| 547 | InvokeDelete(context, value); |
| 548 | } |
| 549 | } |
| 550 | wasInserted.Clear(); |
| 551 | wasUpdated.Clear(); |
| 552 | wasRemoved.Clear(); |
| 553 | |
| 554 | } |
| 555 | |
| 556 | protected class CustomRowEventHandler |
| 557 | { |