Inheritance: Deveel.Data.Diagnostics.Event, ITableEvent
Example #1
0
 private void OnTableCommit(TableCommitEvent commitEvent)
 {
     if (tableModified) {
         InvalidateTriggerCache();
         tableModified = false;
     } else if ((commitEvent.AddedRows != null &&
                 commitEvent.AddedRows.Any()) ||
                (commitEvent.RemovedRows != null &&
                 commitEvent.RemovedRows.Any())) {
         InvalidateTriggerCache();
     }
 }
Example #2
0
 private void OnCommit(TableCommitEvent @event)
 {
     if (@event.AddedRows.Any() ||
         @event.RemovedRows.Any()) {
         typesCache.Clear();
     }
 }
Example #3
0
 private void OnCommit(TableCommitEvent e)
 {
     // If there were changed then invalidate the cache
     if (viewTableChanged) {
         InvalidateViewCache();
         viewTableChanged = false;
     } else if ((e.AddedRows != null && e.AddedRows.Any()) ||
              (e.RemovedRows != null && e.RemovedRows.Any())) {
         // Otherwise, if there were committed added or removed changes also
         // invalidate the cache,
         InvalidateViewCache();
     }
 }