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 { /// /// Represents an SQL Server database context. /// /// public partial class RemoteDB : DbContext { /// /// Initializes a new instance of the class. /// /// The server file path. /// if set to true will try to connect to an .mdf file. 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)) { } } }