hytos / ID2.Manager / ID2.Manager.Controller / Controllers / BaseController.cs @ 81d15568
이력 | 보기 | 이력해설 | 다운로드 (926 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
using System.Configuration; |
8 |
|
9 |
namespace ID2.Manager.Controller.Controllers |
10 |
{ |
11 |
public class BaseController |
12 |
{ |
13 |
public Exception Exception; |
14 |
|
15 |
public string _DbConnectionStr = string.Empty; |
16 |
public string _MarkusConnectionStr = string.Empty; |
17 |
public string _SQLITEDbConnectionStr = string.Empty; |
18 |
|
19 |
public BaseController() |
20 |
{ |
21 |
this._DbConnectionStr = ConfigurationManager.ConnectionStrings["ID2Manager"].ToString(); |
22 |
_MarkusConnectionStr = ConfigurationManager.ConnectionStrings["Markus"].ToString(); |
23 |
this._SQLITEDbConnectionStr = $"Data Source={Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify)}{ConfigurationManager.AppSettings["ID2"]};Version=3;"; |
24 |
} |
25 |
} |
26 |
} |