aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml
blob: 1879cb3f247e63fd3a4723a379e4ae7891f09faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;
using Tango.BL.Entities;

namespace Tango.BL
{
    public partial class ObservablesContext : DbContext
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ObservablesContext" /> class.
        /// </summary>
        /// <param name="path">The server file path.</param>
        /// <param name="isFile">if set to <c>true</c> will try to connect to an .mdf file.</param>
        public ObservablesContext(String path, bool isFile) : base(ComposeConnectionString(path, isFile))
        {

        }

        @foreach (var prop in Model.Properties)
        {
            <div>
                /// <summary>
                /// Gets or sets the @(prop.Name).
                /// </summary>
                public @(prop.Type) @(prop.Name) { get; set; }
            </div>
        }
    }
}