private void OnCommit(TableCommitInfo commitInfo) { if (tableModified) { InvalidateTriggerCache(); tableModified = false; } else if ((commitInfo.AddedRows != null && commitInfo.AddedRows.Any()) || (commitInfo.RemovedRows != null && commitInfo.RemovedRows.Any())) { InvalidateTriggerCache(); } }
private void OnCommit(TableCommitInfo obj) { if (!obj.TableName.Equals(SystemSchema.ViewTableName)) { return; } // If there were changed then invalidate the cache if (viewTableChanged) { InvalidateViewCache(); viewTableChanged = false; } else if ((obj.AddedRows != null && obj.AddedRows.Any()) || (obj.RemovedRows != null && obj.RemovedRows.Any())) { // Otherwise, if there were committed added or removed changes also // invalidate the cache, InvalidateViewCache(); } }