Skip to content

Commit

Permalink
View refresh cleanup
Browse files Browse the repository at this point in the history
Cleaning up the view refresh bug fix so the code is easier to read.
  • Loading branch information
Jereme Guenther authored and niemyjski committed Nov 13, 2019
1 parent 7375399 commit bc8dced
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/NetTiers.cst
Expand Up @@ -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)
Expand Down

0 comments on commit bc8dced

Please sign in to comment.