From fadf83a50071ffba21db05eceff10c51c18f5fb3 Mon Sep 17 00:00:00 2001 From: Roy Date: Fri, 23 Feb 2018 12:03:18 +0200 Subject: Machine Studio Update & Publish. Improved user roles & permissions structure. Added permission for version publish. --- .../Templates/ObservablesContextCodeFile.cshtml | 29 +--------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml index 2094c0999..d2494c1bd 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml @@ -8,7 +8,7 @@ using Tango.Settings; namespace Tango.Integration.Observables { - public class ObservablesContext : DbContext + public partial class ObservablesContext : DbContext { /// /// Initializes a new instance of the class. @@ -20,33 +20,6 @@ namespace Tango.Integration.Observables } - /// - /// Composes the connection string. - /// - /// The source. - /// if set to true [is file]. - /// - private static String ComposeConnectionString(String source, bool isFile) - { - if (!isFile) - { - return String.Format("Data Source={0};Initial Catalog=Tango;Integrated Security=true", source); - } - else - { - return null; - } - } - - /// - /// Creates a default remote database context by the address specified in . - /// - /// - public static ObservablesContext CreateDefault() - { - return new ObservablesContext(SettingsManager.Default.DataBase.SQLServerAddress, false); - } - @foreach (var prop in Model.Properties) {
-- cgit v1.3.1