개정판 e458a996
issue #0000 소스 복구
Change-Id: I3fbe27e09e119bac3f1ec3409ff77c58d7d2f13c
ID2.Manager/ID2.Manager.Dapper/Repository/BaseRepository.cs | ||
---|---|---|
98 | 98 |
return this._DbConnection.Query<T>(sql); |
99 | 99 |
} |
100 | 100 |
|
101 |
public IEnumerable<TReturn> MultiQuery<TFirst, TSecond, TReturn>(string sql, Func<TFirst, TSecond, TReturn> map, object param = null, IDbTransaction transaction = null, bool buffered = true, string splitOn = "Id", int? commandTimeout = null, CommandType? commandType = null) |
|
102 |
{ |
|
103 |
if (this._DbConnection.State != ConnectionState.Open) |
|
104 |
{ |
|
105 |
this._DbConnection.Open(); |
|
106 |
} |
|
107 |
|
|
108 |
return this._DbConnection.Query<TFirst, TSecond, TReturn>(sql, map: map, param: param, transaction: transaction, buffered: buffered, splitOn: splitOn, commandTimeout: commandTimeout, commandType: commandType); |
|
109 |
} |
|
110 |
|
|
101 | 111 |
public T QueryFirst<T>(string sql) |
102 | 112 |
{ |
103 | 113 |
if (this._DbConnection.State != ConnectionState.Open) |
... | ... | |
115 | 125 |
this._DbConnection.Open(); |
116 | 126 |
} |
117 | 127 |
|
118 |
return this._DbConnection.QueryFirstOrDefault<T>(sql, param, transaction : dbTran);
|
|
128 |
return this._DbConnection.QueryFirstOrDefault<T>(sql, param, transaction: dbTran); |
|
119 | 129 |
} |
120 | 130 |
|
121 | 131 |
|
... | ... | |
128 | 138 |
|
129 | 139 |
return this._DbConnection.Query<T>(sql, param); |
130 | 140 |
} |
131 |
public IEnumerable<T> Query<T>(string sql, object param,CommandType commandType) |
|
141 |
public IEnumerable<T> Query<T>(string sql, object param, CommandType commandType)
|
|
132 | 142 |
{ |
133 | 143 |
if (this._DbConnection.State != ConnectionState.Open) |
134 | 144 |
{ |
135 | 145 |
this._DbConnection.Open(); |
136 | 146 |
} |
137 | 147 |
|
138 |
return this._DbConnection.Query<T>(sql, param,commandType: commandType); |
|
148 |
return this._DbConnection.Query<T>(sql, param, commandType: commandType);
|
|
139 | 149 |
} |
140 | 150 |
|
141 | 151 |
public async Task<IEnumerable<T>> QueryAsync<T>(string sql) |
내보내기 Unified diff