개정판 978488b0
issue #0000
최초 ID2Connection 시 ID2 작업 시작일 업데이트
Change-Id: I43a72409c4b904f8db3c50ecf31263d246ae8072
ID2.Manager/ID2.Manager.Dapper/Repository/BaseRepository.cs | ||
---|---|---|
108 | 108 |
return this._DbConnection.QueryFirst<T>(sql); |
109 | 109 |
} |
110 | 110 |
|
111 |
public T QueryFirstOrDefault<T>(string sql, object param, IDbTransaction dbTran = null) |
|
112 |
{ |
|
113 |
if (this._DbConnection.State != ConnectionState.Open) |
|
114 |
{ |
|
115 |
this._DbConnection.Open(); |
|
116 |
} |
|
117 |
|
|
118 |
return this._DbConnection.QueryFirstOrDefault<T>(sql, param, transaction : dbTran); |
|
119 |
} |
|
120 |
|
|
111 | 121 |
|
112 | 122 |
public IEnumerable<T> Query<T>(string sql, object param) |
113 | 123 |
{ |
내보내기 Unified diff