From 3fdcdac577d552bbdf6d7320c6ffb0753e810a08 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 10 Dec 2017 19:01:05 +0200 Subject: Started working on machine designer view models. Added NAME field to MACHINE table. --- .../Utilities/Tango.MachineDesigner.UI/DBAdapter.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs (limited to 'Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/DBAdapter.cs') 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); + } + } +} -- cgit v1.3.1