aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-02-04 20:19:42 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-02-04 20:19:42 +0200
commit3d589c9f7dddd4c3b77b21fdd9930b6cf3f780ca (patch)
tree20faf3a19037c22519ba65e0e758ca0ec9db737f /Software/Visual_Studio/Tango.Core
parent5bf3a7b36b3ccc7942f4e8e3fa227a38c04a8451 (diff)
downloadTango-3d589c9f7dddd4c3b77b21fdd9930b6cf3f780ca.tar.gz
Tango-3d589c9f7dddd4c3b77b21fdd9930b6cf3f780ca.zip
Working on azure utils.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
-rw-r--r--Software/Visual_Studio/Tango.Core/DB/DbManager.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/DB/DbManager.cs b/Software/Visual_Studio/Tango.Core/DB/DbManager.cs
index 8601d67a0..d6eb521bd 100644
--- a/Software/Visual_Studio/Tango.Core/DB/DbManager.cs
+++ b/Software/Visual_Studio/Tango.Core/DB/DbManager.cs
@@ -78,6 +78,15 @@ namespace Tango.Core.DB
cmd.ExecuteNonQuery();
}
+ public Task ExecuteCommandAsync(String command)
+ {
+ return Task.Factory.StartNew(() =>
+ {
+ SqlCommand cmd = new SqlCommand(command, _connection);
+ cmd.ExecuteNonQuery();
+ });
+ }
+
public bool Exists(String name)
{
try