Skip to content
Permalink
Browse files

View refresh cleanup

Cleaning up the view refresh bug fix so the code is easier to read.
  • Loading branch information
jeremeguenther authored and niemyjski committed Oct 25, 2019
1 parent 7375399 commit bc8dcedb5aec8aecfeb45cb2aa23f9a63bae675e
Showing with 2 additions and 4 deletions.
  1. +2 −4 Source/NetTiers.cst
@@ -1506,11 +1506,9 @@
// Now that the sql has been executed, refresh the view meta data in case in changed.
SourceDatabase.Refresh();

ViewSchemaCollection temp_templateSourceViews = templateSourceViews;
templateSourceViews = new ViewSchemaCollection();
for (int i=0; i < temp_templateSourceViews.Count; i++)
for (int i=0; i < templateSourceViews.Count; i++)
{
templateSourceViews.Add(SourceDatabase.Views[temp_templateSourceViews[i].Name]);
templateSourceViews[i] = SourceDatabase.Views[templateSourceViews[i].Name];
}
}
catch(System.Data.SqlClient.SqlException sex)

0 comments on commit bc8dced

Please sign in to comment.
You can’t perform that action at this time.