aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs
diff options
context:
space:
mode:
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);
+ }
+ }
+}