개정판 c7f3eb42
issue #00000 markus image Create 수정
Change-Id: I9fc9beeea867be787be7c425e905b6fdfeadfbba
ID2.Manager/ID2.Manager.Dapper/Repository/BaseRepository.cs | ||
---|---|---|
7 | 7 |
using System.Data; |
8 | 8 |
using System.Data.SqlClient; |
9 | 9 |
using System.ComponentModel.DataAnnotations.Schema; |
10 |
#if !MARKUS_IMAGE_CREATE |
|
10 | 11 |
using System.Data.SQLite; |
11 |
|
|
12 |
#endif |
|
12 | 13 |
using Dapper; |
13 | 14 |
|
14 | 15 |
namespace ID2.Manager.Dapper.Repository |
... | ... | |
24 | 25 |
{ |
25 | 26 |
switch (dbType) |
26 | 27 |
{ |
28 |
#if !MARKUS_IMAGE_CREATE |
|
27 | 29 |
case DatabaseType.SQLITE: |
28 | 30 |
this._DbConnection = this.SQLiteDBConnection(connectionStr); |
29 | 31 |
break; |
32 |
#endif |
|
30 | 33 |
case DatabaseType.MSSQL: |
31 | 34 |
default: |
32 | 35 |
this._DbConnection = this.DBConnection(connectionStr); |
... | ... | |
59 | 62 |
{ |
60 | 63 |
return new SqlConnection(connectionStr); |
61 | 64 |
} |
62 |
|
|
65 |
#if !MARKUS_IMAGE_CREATE |
|
63 | 66 |
public SQLiteConnection SQLiteDBConnection(string connectionStr) |
64 | 67 |
{ |
65 | 68 |
return new SQLiteConnection(connectionStr, true); |
66 | 69 |
} |
70 |
#endif |
|
67 | 71 |
|
68 | 72 |
public IDbTransaction BeginTransaction() |
69 | 73 |
{ |
내보내기 Unified diff