@@ -153,12 +153,12 @@ public static async Task ChunkAsync(this Query query, int chunkSize, Action<IEnu
153153 await ChunkAsync < dynamic > ( query , chunkSize , action , transaction , timeout ) ;
154154 }
155155
156- public static int Insert ( this Query query , IReadOnlyDictionary < string , object > values , IDbTransaction transaction = null , int ? timeout = null )
156+ public static int Insert ( this Query query , IEnumerable < KeyValuePair < string , object > > values , IDbTransaction transaction = null , int ? timeout = null )
157157 {
158158 return CreateQueryFactory ( query ) . Execute ( query . AsInsert ( values ) , transaction , timeout ) ;
159159 }
160160
161- public static async Task < int > InsertAsync ( this Query query , IReadOnlyDictionary < string , object > values , IDbTransaction transaction = null , int ? timeout = null )
161+ public static async Task < int > InsertAsync ( this Query query , IEnumerable < KeyValuePair < string , object > > values , IDbTransaction transaction = null , int ? timeout = null )
162162 {
163163 return await CreateQueryFactory ( query ) . ExecuteAsync ( query . AsInsert ( values ) , transaction , timeout ) ;
164164 }
@@ -205,26 +205,26 @@ public static async Task<T> InsertGetIdAsync<T>(this Query query, object data, I
205205 return row . Id ;
206206 }
207207
208- public static T InsertGetId < T > ( this Query query , IReadOnlyDictionary < string , object > data , IDbTransaction transaction = null , int ? timeout = null )
208+ public static T InsertGetId < T > ( this Query query , IEnumerable < KeyValuePair < string , object > > data , IDbTransaction transaction = null , int ? timeout = null )
209209 {
210210 var row = CreateQueryFactory ( query ) . First < InsertGetIdRow < T > > ( query . AsInsert ( data , true ) , transaction , timeout ) ;
211211
212212 return row . Id ;
213213 }
214214
215- public static async Task < T > InsertGetIdAsync < T > ( this Query query , IReadOnlyDictionary < string , object > data , IDbTransaction transaction = null , int ? timeout = null )
215+ public static async Task < T > InsertGetIdAsync < T > ( this Query query , IEnumerable < KeyValuePair < string , object > > data , IDbTransaction transaction = null , int ? timeout = null )
216216 {
217217 var row = await CreateQueryFactory ( query ) . FirstAsync < InsertGetIdRow < T > > ( query . AsInsert ( data , true ) , transaction , timeout ) ;
218218
219219 return row . Id ;
220220 }
221221
222- public static int Update ( this Query query , IReadOnlyDictionary < string , object > values , IDbTransaction transaction = null , int ? timeout = null )
222+ public static int Update ( this Query query , IEnumerable < KeyValuePair < string , object > > values , IDbTransaction transaction = null , int ? timeout = null )
223223 {
224224 return CreateQueryFactory ( query ) . Execute ( query . AsUpdate ( values ) , transaction , timeout ) ;
225225 }
226226
227- public static async Task < int > UpdateAsync ( this Query query , IReadOnlyDictionary < string , object > values , IDbTransaction transaction = null , int ? timeout = null )
227+ public static async Task < int > UpdateAsync ( this Query query , IEnumerable < KeyValuePair < string , object > > values , IDbTransaction transaction = null , int ? timeout = null )
228228 {
229229 return await CreateQueryFactory ( query ) . ExecuteAsync ( query . AsUpdate ( values ) , transaction , timeout ) ;
230230 }
0 commit comments