예제 #1
0
 private void OnCommit(TableCommitInfo commitInfo)
 {
     if (TableName.Equals(commitInfo.TableName))
     {
         addedList.AddRange(commitInfo.AddedRows);
         removedList.AddRange(commitInfo.RemovedRows);
     }
 }
예제 #2
0
        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();
            }
        }
예제 #3
0
 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();
     }
 }
예제 #4
0
 private void OnCommit(TableCommitInfo commitInfo)
 {
     if (TableName.Equals(commitInfo.TableName)) {
         addedList.AddRange(commitInfo.AddedRows);
         removedList.AddRange(commitInfo.RemovedRows);
     }
 }