개정판 91e72bfe
issue #0000
유저등록 개발진행
Change-Id: I493f5ed73f8e1c797dc6889e463a5b6afee4c80f
ID2.Manager/ID2.Manager.Controller/Controllers/BaseController.cs | ||
---|---|---|
5 | 5 |
using System.Threading.Tasks; |
6 | 6 |
|
7 | 7 |
using System.Configuration; |
8 |
using System.IO; |
|
8 | 9 |
|
9 | 10 |
using ID2.Manager.Dapper; |
10 | 11 |
using ID2.Manager.Data.Models; |
... | ... | |
25 | 26 |
public BaseController(ID2ProjectInfo id2Info) |
26 | 27 |
{ |
27 | 28 |
this._MSSQLCONNSTR = ConfigurationManager.ConnectionStrings["ID2Manager"].ConnectionString; |
28 |
this._SQLITECONNSTR = String.Format(ConfigurationManager.AppSettings["ID2SQLite"], System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ConfigurationManager.AppSettings["ID2SQLiteInfo"]));
|
|
29 |
this._SQLITECONNSTR = String.Format(ConfigurationManager.AppSettings["ID2SQLite"], Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ConfigurationManager.AppSettings["ID2SQLiteInfo"])); |
|
29 | 30 |
this._MARKUSCONNSTR = ConfigurationManager.ConnectionStrings["Markus"].ToString(); |
30 | 31 |
|
31 |
if (id2Info != null) |
|
32 |
if (id2Info == null || id2Info.Id <= 0) |
|
33 |
{ |
|
34 |
this._ID2CONNSTR = string.Empty; |
|
35 |
} |
|
36 |
else |
|
32 | 37 |
{ |
33 | 38 |
DatabaseType DBType = (DatabaseType)Enum.Parse(typeof(DatabaseType), id2Info.DBTypeName.ToUpper()); |
34 | 39 |
switch (DBType) |
내보내기 Unified diff