aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-12-10 19:01:05 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-12-10 19:01:05 +0200
commit3fdcdac577d552bbdf6d7320c6ffb0753e810a08 (patch)
tree55e392cea80a3539164abb1fd16c15986c92b287 /Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs
parent3eabdee9604ad67cdbab7ee35bdfa249402f8831 (diff)
downloadTango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.tar.gz
Tango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.zip
Started working on machine designer view models.
Added NAME field to MACHINE table.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs b/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs
new file mode 100644
index 000000000..e628db850
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.DAL.Remote.DB;
+using Tango.Settings;
+
+namespace Tango.MachineDesigner.UI
+{
+ public class DBAdapter
+ {
+ public static RemoteDB DbContext { get; set; }
+
+ public static void Initialize()
+ {
+ DbContext = new RemoteDB(SettingsManager.Default.DataBase.SQLServerAddress, false);
+ }
+ }
+}