aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DAL.Remote/Partials/RemoteDB.cs
blob: a298572629c7ea01ef197f90fad4535fd75958a6 (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
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
using Tango.Settings;

namespace Tango.DAL.Remote.DB
{
    /// <summary>
    /// Represents an SQL Server database context.
    /// </summary>
    /// <seealso cref="System.Data.Entity.DbContext" />
    public partial class RemoteDB : DbContext
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RemoteDB"/> 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 RemoteDB(DataSource dataSource) : base(String.Format("metadata=res://*/DB.RemoteADO.csdl|res://*/DB.RemoteADO.ssdl|res://*/DB.RemoteADO.msl;provider=System.Data.SqlClient;provider connection string=\"{0}\"", dataSource.ToConnection().ConnectionString))
        {

        }
    }
}
s="nc">header { /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#00ceff+0,00a9d8+100 */ background: #00ceff; /* Old browsers */ background: -moz-linear-gradient(top, #00ceff 0%, #00a9d8 100%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, #00ceff 0%,#00a9d8 100%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, #24C8EF 0%,#00a9d8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ceff', endColorstr='#00a9d8',GradientType=0 ); /* IE6-9 */ padding: 20px; box-shadow: White 0px 0px 10px; position: relative; height: 120px; } #imgLogo { height: 120px; } #txtLogo { font-family: 'Audiowide'; position: absolute; top: 45%; margin-left: 180px; font-size: 32pt; color: black; } a { color: white; text-decoration: none; /* no underline */ } #linkLogout { color: black; font-weight: bold; font-family: 'Audiowide'; }