Skip to content

Commit 0edb6b3

Browse files
Added feature to re-load all objects from the database after execute script.
1 parent fd5b60f commit 0edb6b3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SQL Document Builder/SQLDocumentBuilder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<StartupObject>SQL_Document_Builder.Program</StartupObject>
1414
<ApplicationIcon>SQLDocBuilder.ico</ApplicationIcon>
1515
<PackageIcon>SQL_Doc.png</PackageIcon>
16-
<AssemblyVersion>3.5.13</AssemblyVersion>
17-
<FileVersion>3.5.13</FileVersion>
16+
<AssemblyVersion>3.5.14</AssemblyVersion>
17+
<FileVersion>3.5.14</FileVersion>
1818
<RepositoryUrl>https://github.com/SherlockSoftwareInc/SQL-Document-Builder</RepositoryUrl>
1919
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
2020
<Title>SQL Server Script and Document Builder</Title>

SQL Document Builder/TableBuilderForm.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,9 @@ private async void OnExecuteToolStripMenuItem_Click(object sender, EventArgs e)
19981998
else
19991999
{
20002000
Common.MsgBox("Execute completed successfully", MessageBoxIcon.Information);
2001+
2002+
// re-load all objects from the database in a background thread
2003+
_allObjects = await Task.Run(() => SQLDatabaseHelper.GetAllObjectsAsync(connection?.ConnectionString));
20012004
}
20022005

20032006
Cursor = Cursors.Default;

0 commit comments

Comments
 (0)