개정판 731c84b8
issue #00000 postgresql 테스트 추가
Change-Id: I554bf424488db8d89aa865f3b0bb3eb997427cd1
ConvertService/ServiceBase/DocItemCheck/DocumentItemCheck.cs | ||
---|---|---|
18 | 18 |
|
19 | 19 |
public string Exception { get; set; } |
20 | 20 |
public string gConvertID; |
21 |
|
|
21 |
private const string DBTYPE_KEY = "DBTYPE"; |
|
22 | 22 |
private const string MARKUS_ConnectionString_KEY = "MARKUS_ConnectionString"; |
23 | 23 |
|
24 | 24 |
bool IPlugin.Do(string ConvertID, Dictionary<string, object> Parameters) |
... | ... | |
32 | 32 |
{ |
33 | 33 |
if (Parameters.Keys.Count(x => x == MARKUS_ConnectionString_KEY) > 0) |
34 | 34 |
{ |
35 |
Parameters.TryGetValue(DBTYPE_KEY, out object dbtypeStr); |
|
36 |
Markus.Service.DataBase.DBMSType dbtype = (Markus.Service.DataBase.DBMSType)Enum.Parse(typeof(Markus.Service.DataBase.DBMSType), dbtypeStr.ToString()); |
|
35 | 37 |
string connectionString = Parameters[MARKUS_ConnectionString_KEY].ToString(); |
36 | 38 |
|
37 |
using (BaseRepository repository = new Markus.Service.DataBase.Repositories.BaseRepository(Encrypt.AESEncrypter.Decrypt(connectionString))) |
|
39 |
using (BaseRepository repository = new Markus.Service.DataBase.Repositories.BaseRepository(Encrypt.AESEncrypter.Decrypt(connectionString), dbtype))
|
|
38 | 40 |
{ |
39 | 41 |
string sql = @"SELECT doc.* " + |
40 | 42 |
" FROM MarkusModel.DOCUMENT_ITEM as doc " + |
내보내기 Unified diff