hytos / ID2.Manager / ID2.Manager.Controller / Controllers / BaseController.cs @ cfa37642
이력 | 보기 | 이력해설 | 다운로드 (926 Bytes)
1 | 8164f84e | yoush97 | 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 | c112c3c3 | taeseongkim | public Exception Exception; |
14 | |||
15 | 8164f84e | yoush97 | public string _DbConnectionStr = string.Empty; |
16 | 098748fa | taeseongkim | public string _MarkusConnectionStr = string.Empty; |
17 | be2dacfc | yoush97 | public string _SQLITEDbConnectionStr = string.Empty; |
18 | 8164f84e | yoush97 | |
19 | public BaseController() |
||
20 | { |
||
21 | this._DbConnectionStr = ConfigurationManager.ConnectionStrings["ID2Manager"].ToString(); |
||
22 | 098748fa | taeseongkim | _MarkusConnectionStr = ConfigurationManager.ConnectionStrings["Markus"].ToString(); |
23 | 81d15568 | yoush97 | this._SQLITEDbConnectionStr = $"Data Source={Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify)}{ConfigurationManager.AppSettings["ID2"]};Version=3;"; |
24 | 8164f84e | yoush97 | } |
25 | } |
||
26 | } |