blob: 2ad765a2bbacec7100562e973b86267f0a232e7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.DAL.Local.DB
{
public partial class LocalDB : DbContext
{
public LocalDB(String filePath) : base(ComposeConnectionString(filePath))
{
}
private static String ComposeConnectionString(String filePath)
{
return String.Format("metadata=res://*/DB.LocalADO.csdl|res://*/DB.LocalADO.ssdl|res://*/DB.LocalADO.msl;provider=System.Data.SQLite.EF6;provider connection string=\"data source={0}\"", filePath);
}
}
}
|