Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
608 lines (555 loc) · 30.1 KB

File metadata and controls

608 lines (555 loc) · 30.1 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
namespace Simple.Data
{
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using Extensions;
/// <summary>
/// Provides a base class for adapters to persist data to data storage systems.
/// Authors may derive from this class to create support for all kinds of databases or data stores.
/// </summary>
public abstract class Adapter
{
private readonly ExpandoObject _settings = new ExpandoObject();
/// <summary>
/// Gets an <see cref="ExpandoObject"/> with the settings for this <see cref="Adapter"/>.
/// This property may be cast to an <see cref="IDictionary{TKey,TValue}"/> with a <see cref="string"/>
/// key and <see cref="object"/> value for non-dynamic access.
/// </summary>
/// <value>The settings.</value>
protected dynamic Settings
{
get { return _settings; }
}
/// <summary>
/// Performs initial setup of the Adapter, allowing an object to be passed in with Adapter-specific settings.
/// </summary>
/// <param name="settings">An <see cref="ExpandoObject"/> or an anonymous-typed object with any adapter-specific settings.</param>
public void Setup(object settings)
{
Setup(settings.ObjectToDictionary());
}
/// <summary>
/// Performs initial setup of the Adapter, allowing an object to be passed in with Adapter-specific settings.
/// </summary>
/// <param name="settings">A list of name/value pairs with any adapter-specific settings.</param>
public void Setup(IEnumerable<KeyValuePair<string, object>> settings)
{
var settingsAsDictionary = (IDictionary<string, object>) _settings;
foreach (var keyValuePair in settings)
{
settingsAsDictionary.Add(keyValuePair);
}
OnSetup();
}
public OptionsBase Options { get; set; }
/// <summary>
/// Called when the <see cref="Setup(object)"/> method is called, after the settings have been set.
/// </summary>
/// <remarks>It is not necessary to call <c>base.OnSetup()</c> when overriding this method.</remarks>
protected virtual void OnSetup()
{
}
/// <summary>
/// Gets the key value(s) for the record.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="record">The record.</param>
/// <returns>An <c>IDictionary&lt;string,object&gt;</c> containing the key that uniquely identifies the record in the database.</returns>
public abstract IDictionary<string, object> GetKey(string tableName, IDictionary<string, object> record);
/// <summary>
/// Gets the key name(s) for the table.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <returns>An <c>IList&lt;string&gt;</c> containing the key names that uniquely identify a record in the database.</returns>
public abstract IList<string> GetKeyNames(string tableName);
/// <summary>
/// Gets a single record from the specified "table" using its default key.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="keyValues">The values to search with.</param>
/// <returns>The record matching the supplied key. If no record is found, return <c>null</c>.</returns>
public abstract IDictionary<string, object> Get(string tableName, params object[] keyValues);
/// <summary>
/// Finds data from the specified "table".
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="criteria">The criteria. This may be <c>null</c>, in which case all records should be returned.</param>
/// <returns>The list of records matching the criteria. If no records are found, return an empty list.</returns>
public abstract IEnumerable<IDictionary<string, object>> Find(string tableName, SimpleExpression criteria);
/// <summary>
/// Runs a <see cref="SimpleQuery"/>.
/// </summary>
/// <param name="query">The <see cref="SimpleQuery"/> to run.</param>
/// <param name="unhandledClauses">Use this to return any clauses your adapter is unable to interpret.</param>
/// <returns></returns>
public abstract IEnumerable<IDictionary<string, object>> RunQuery(SimpleQuery query,
out IEnumerable<SimpleQueryClauseBase>
unhandledClauses);
/// <summary>
/// Inserts a record into the specified "table".
/// </summary><param name="tableName">Name of the table.</param>
/// <param name="data">The values to insert.</param>
/// <param name="resultRequired"><c>true</c> if the insert call uses a return value; otherwise, <c>false</c>.</param>
/// <returns>If possible, return the newly inserted row, including any automatically-set values such as primary keys or timestamps.</returns>
public abstract IDictionary<string, object> Insert(string tableName, IDictionary<string, object> data, bool resultRequired);
/// <summary>
/// Updates the specified "table" according to specified criteria.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="data">The new values.</param>
/// <param name="criteria">The expression to use as criteria for the update operation.</param>
/// <returns>The number of records affected by the update operation.</returns>
public abstract int Update(string tableName, IDictionary<string, object> data, SimpleExpression criteria);
/// <summary>
/// Deletes from the specified table.
/// </summary><param name="tableName">Name of the table.</param>
/// <param name="criteria">The expression to use as criteria for the delete operation.</param>
/// <returns>The number of records which were deleted.</returns>
public abstract int Delete(string tableName, SimpleExpression criteria);
/// <summary>
/// Checks to see whether the passed function name is a valid function for the Adapter.
/// </summary>
/// <param name="functionName">The name of the function.</param>
/// <param name="args">The values passed (for overload resolution etc).</param>
/// <returns><c>true</c> if the name represents a function; otherwise, <c>false</c>.</returns>
public abstract bool IsExpressionFunction(string functionName, params object[] args);
/// <summary>
/// Finds a single record.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="criteria">The criteria.</param>
/// <returns>A dictionary containing the record.</returns>
/// <remarks>This method has a default implementation based on the <see cref="Find(string,SimpleExpression)"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual IDictionary<string, object> FindOne(string tableName, SimpleExpression criteria)
{
return Find(tableName, criteria).FirstOrDefault();
}
/// <summary>
/// Inserts multiple records into a table.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="dataList">The data.</param>
/// <param name="onError">A Func to call when there is an error. It this func returns true, carry on, otherwise abort.</param>
/// <param name="resultRequired"><c>true</c> if the result of the insert is used in code; otherwise, <c>false</c>.</param>
/// <returns>If possible, return the newly inserted rows, including any automatically-set values such as primary keys or timestamps.</returns>
/// <remarks>This method has a default implementation based on the <see cref="Insert(string,IDictionary{string,object},bool)"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual IEnumerable<IDictionary<string, object>> InsertMany(string tableName,
IEnumerable<IDictionary<string, object>> dataList,
Func<IDictionary<string, object>, Exception, bool> onError,
bool resultRequired)
{
if (resultRequired)
{
return InsertManyAndReturn(tableName, dataList, onError);
}
InsertManyWithoutReturn(tableName, dataList, onError);
return null;
}
private IEnumerable<IDictionary<string, object>> InsertManyAndReturn(string tableName, IEnumerable<IDictionary<string, object>> dataList, Func<IDictionary<string, object>, Exception, bool> onError)
{
foreach (var row in dataList)
{
IDictionary<string, object> inserted;
try
{
inserted = Insert(tableName, row, true);
}
catch (Exception ex)
{
if (onError != null)
{
if (onError(row, ex))
{
continue;
}
break;
}
throw;
}
yield return inserted;
}
}
private void InsertManyWithoutReturn(string tableName, IEnumerable<IDictionary<string, object>> dataList, Func<IDictionary<string, object>, Exception, bool> onError)
{
foreach (var row in dataList)
{
try
{
Insert(tableName, row, false);
}
catch (Exception ex)
{
if (onError != null)
{
if (onError(row, ex))
{
continue;
}
break;
}
throw;
}
}
}
/// <summary>
/// Updates multiple records in a table.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="data">The data.</param>
/// <returns>The total number of records affected by the update operations.</returns>
/// <remarks>This method has a default implementation based on the <see cref="Update(string,IDictionary{string, object},SimpleExpression)"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual int UpdateMany(string tableName, IEnumerable<IDictionary<string, object>> data)
{
int updateCount = 0;
foreach (var row in data)
{
var key = GetKey(tableName, row);
var criteria = ExpressionHelper.CriteriaDictionaryToExpression(tableName, key);
updateCount += Update(tableName, row, criteria);
}
return updateCount;
}
/// <summary>
/// Runs the query as an <see cref="IObservable{T}"/>, for Reactive Extension joy.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="unhandledClauses">The unhandled clauses.</param>
/// <returns>A cold <see cref="IObservable{T}"/> which will start pushing when subscribed.</returns>
/// <remarks>This method has a default implementation based on the <see cref="RunQuery"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual IObservable<IDictionary<string, object>> RunQueryAsObservable(SimpleQuery query,
out
IEnumerable
<SimpleQueryClauseBase>
unhandledClauses)
{
return RunQuery(query, out unhandledClauses).ToObservable();
}
/// <summary>
/// Runs multiple queries.
/// </summary>
/// <param name="queries">The queries.</param>
/// <param name="unhandledClauses">The unhandled clauses.</param>
/// <returns>A list of lists of dictionaries. Data.</returns>
/// <remarks>This method has a default implementation based on the <see cref="RunQuery"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual IEnumerable<IEnumerable<IDictionary<string, object>>> RunQueries(SimpleQuery[] queries,
List
<
IEnumerable
<SimpleQueryClauseBase>>
unhandledClauses)
{
foreach (var query in queries)
{
IEnumerable<SimpleQueryClauseBase> unhandledClausesForThisQuery;
var result = RunQuery(query, out unhandledClausesForThisQuery);
unhandledClauses.Add(unhandledClausesForThisQuery);
yield return result;
}
}
/// <summary>
/// Updates the specified "table" according to default keys (to be handled by adapter).
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="dataList">A list of objects to be updated.</param>
/// <param name="criteriaFieldNames">The list of field names to be used for criteria.</param>
/// <returns>The number of records affected by the update operation.</returns>
/// <remarks>For example, the Ado adapter will fulfil this functionality using Primary Key data.</remarks>
/// <remarks>This method has a default implementation based on the
/// <see cref="Update(string,System.Collections.Generic.IDictionary{string,object},Simple.Data.SimpleExpression)"/> method.
/// You should override this method if your adapter can optimize the operation.</remarks>
public virtual int UpdateMany(string tableName, IEnumerable<IDictionary<string, object>> dataList,
IEnumerable<string> criteriaFieldNames)
{
int updatedCount = 0;
var criteriaFieldNameList = criteriaFieldNames.ToList();
foreach (var data in dataList)
{
updatedCount += Update(tableName, data, GetCriteria(tableName, criteriaFieldNameList, data));
}
return updatedCount;
}
/// <summary>
/// Creates a delegate which can accept an array of values to use as criteria against a cached template.
/// When called, the delegate should return a single record using the passed values as criteria.
/// </summary><param name="tableName">Name of the table.</param>
/// <param name="criteria">The criteria to use as a template for the delegate</param>
/// <returns>A <c>Func&lt;object[], IDictionary&lt;string, object&gt;&gt;"</c> which finds a record.</returns>
public virtual Func<object[], IDictionary<string, object>> CreateFindOneDelegate(string tableName,
SimpleExpression criteria)
{
throw new NotImplementedException();
}
/// <summary>
/// Creates a delegate which can accept an array of values to use as criteria against a cached template.
/// When called, the delegate should return zero or more records using the passed values as criteria.
/// </summary><param name="tableName">Name of the table.</param>
/// <param name="criteria">The criteria to use as a template for the delegate</param>
/// <returns>A <c>Func&lt;object[], IDictionary&lt;string, object&gt;&gt;"</c> which finds a record.</returns>
public virtual Func<object[], IEnumerable<IDictionary<string, object>>> CreateFindDelegate(string tableName,
SimpleExpression
criteria)
{
throw new NotImplementedException();
}
/// <summary>
/// Creates a criteria expression.
/// </summary>
/// <param name="tableName">The name of the root table for the expression.</param>
/// <param name="criteriaFieldNames">The names of fields to be used for the criteria.</param>
/// <param name="record">The name/value pairs to be used as criteria.</param>
/// <returns>A <see cref="SimpleExpression"/> criteria object.</returns>
protected static SimpleExpression GetCriteria(string tableName, IEnumerable<string> criteriaFieldNames,
IDictionary<string, object> record)
{
var criteria = new Dictionary<string, object>();
foreach (var criteriaFieldName in criteriaFieldNames)
{
var name = criteriaFieldName;
var keyValuePair = record.SingleOrDefault(kvp => kvp.Key.Homogenize().Equals(name.Homogenize()));
if (string.IsNullOrWhiteSpace(keyValuePair.Key))
{
throw new InvalidOperationException("Key field value not set.");
}
criteria.Add(criteriaFieldName, keyValuePair.Value);
record.Remove(keyValuePair);
}
return ExpressionHelper.CriteriaDictionaryToExpression(tableName, criteria);
}
public void Reset()
{
OnReset();
}
protected virtual void OnReset()
{
}
private OptimizingDelegateFactory _optimizingDelegateFactory;
public OptimizingDelegateFactory OptimizingDelegateFactory
{
get { return _optimizingDelegateFactory ?? (_optimizingDelegateFactory = CreateOptimizingDelegateFactory()); }
}
private OptimizingDelegateFactory CreateOptimizingDelegateFactory()
{
return MefHelper.GetAdjacentComponent<OptimizingDelegateFactory>(GetType()) ?? new DefaultOptimizingDelegateFactory();
}
public virtual IDictionary<string, object> Upsert(string tableName, IDictionary<string, object> dict, SimpleExpression criteriaExpression, bool isResultRequired)
{
if (Find(tableName, criteriaExpression).Any())
{
var key = GetKey(tableName, dict);
dict = dict.Where(kvp => key.All(keyKvp => keyKvp.Key.Homogenize() != kvp.Key.Homogenize())).ToDictionary();
Update(tableName, dict, criteriaExpression);
return isResultRequired ? Find(tableName, criteriaExpression).FirstOrDefault() : null;
}
return Insert(tableName, dict, isResultRequired);
}
public virtual IEnumerable<IDictionary<string, object>> UpsertMany(string tableName, IList<IDictionary<string, object>> list, IEnumerable<string> keyFieldNames, bool isResultRequired, Func<IDictionary<string,object>,Exception,bool> errorCallback)
{
if (isResultRequired)
return UpsertManyWithResults(tableName, list, keyFieldNames, errorCallback);
UpsertManyWithoutResults(tableName, list, keyFieldNames, errorCallback);
return null;
}
private IEnumerable<IDictionary<string, object>> UpsertManyWithResults(string tableName, IEnumerable<IDictionary<string, object>> list, IEnumerable<string> keyFieldNames,
Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
var criteriaFields = keyFieldNames.ToArray();
foreach (var row in list)
{
IDictionary<string, object> result;
try
{
var criteria = GetCriteria(tableName, criteriaFields, row);
result = Upsert(tableName, row, criteria, true);
}
catch (Exception ex)
{
if (errorCallback(row, ex)) continue;
throw;
}
yield return result;
}
}
private void UpsertManyWithoutResults(string tableName, IEnumerable<IDictionary<string, object>> list, IEnumerable<string> keyFieldNames,
Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
var criteriaFields = keyFieldNames.ToArray();
foreach (var row in list)
{
try
{
var criteria = GetCriteria(tableName, criteriaFields, row);
Upsert(tableName, row, criteria, false);
}
catch (Exception ex)
{
if (errorCallback(row, ex)) continue;
throw;
}
}
}
public virtual IDictionary<string, object> Upsert(string tableName, IDictionary<string, object> dict, SimpleExpression criteriaExpression, bool isResultRequired, IAdapterTransaction transaction)
{
var transactionAdapter = this as IAdapterWithTransactions;
if (transactionAdapter == null) throw new NotSupportedException("Transactions are not supported with current adapter.");
if (transactionAdapter.Find(tableName, criteriaExpression, transaction).Any())
{
transactionAdapter.Update(tableName, dict, criteriaExpression, transaction);
return isResultRequired ? transactionAdapter.Find(tableName, criteriaExpression, transaction).FirstOrDefault() : null;
}
return transactionAdapter.Insert(tableName, dict, transaction, isResultRequired);
}
public virtual IEnumerable<IDictionary<string, object>> UpsertMany(string tableName, IList<IDictionary<string, object>> list, IEnumerable<string> keyFieldNames, IAdapterTransaction transaction, bool isResultRequired, Func<IDictionary<string,object>,Exception,bool> errorCallback)
{
var transactionAdapter = this as IAdapterWithTransactions;
if (transactionAdapter == null) throw new NotSupportedException("Transactions are not supported with current adapter.");
var criteriaFields = keyFieldNames.ToArray();
if (isResultRequired)
{
return UpsertManyWithResults(tableName, list, transaction, transactionAdapter, criteriaFields, errorCallback);
}
UpsertManyWithoutResults(tableName, list, transaction, transactionAdapter, criteriaFields, errorCallback);
return null;
}
private static IEnumerable<IDictionary<string, object>> UpsertManyWithResults(string tableName, IEnumerable<IDictionary<string, object>> list, IAdapterTransaction transaction, IAdapterWithTransactions transactionAdapter, string[] criteriaFields, Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
foreach (var row in list)
{
IDictionary<string, object> result;
try
{
var criteria = GetCriteria(tableName, criteriaFields, row);
result = transactionAdapter.Upsert(tableName, row, criteria, true, transaction);
}
catch (Exception ex)
{
if (errorCallback(row, ex))
{
continue;
}
throw;
}
yield return result;
}
}
private static void UpsertManyWithoutResults(string tableName, IEnumerable<IDictionary<string, object>> list, IAdapterTransaction transaction, IAdapterWithTransactions transactionAdapter, string[] criteriaFields, Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
foreach (var row in list)
{
var criteria = GetCriteria(tableName, criteriaFields, row);
try
{
transactionAdapter.Upsert(tableName, row, criteria, true, transaction);
}
catch (Exception ex)
{
if (errorCallback(row, ex))
{
continue;
}
throw;
}
}
}
public virtual IEnumerable<IDictionary<string, object>> UpsertMany(string tableName, IList<IDictionary<string, object>> list, bool isResultRequired, Func<IDictionary<string,object>,Exception,bool> errorCallback)
{
if (isResultRequired)
{
return UpsertManyWithResults(tableName, list, errorCallback);
}
UpsertManyWithoutResults(tableName, list, errorCallback);
return null;
}
private IEnumerable<IDictionary<string, object>> UpsertManyWithResults(string tableName, IEnumerable<IDictionary<string, object>> list, Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
foreach (var row in list)
{
IDictionary<string, object> result;
try
{
var key = GetKey(tableName, row);
var criteria = ExpressionHelper.CriteriaDictionaryToExpression(tableName, key);
if (Find(tableName, criteria).Any())
{
var record = row.Except(key).ToDictionary();
Update(tableName, record, criteria);
result = FindOne(tableName, criteria);
}
else
{
result = Insert(tableName, row, true);
}
}
catch (Exception ex)
{
if (errorCallback(row, ex))
{
continue;
}
throw;
}
yield return result;
}
}
private void UpsertManyWithoutResults(string tableName, IEnumerable<IDictionary<string, object>> list, Func<IDictionary<string, object>, Exception, bool> errorCallback)
{
foreach (var row in list)
{
try
{
var key = GetKey(tableName, row);
var criteria = ExpressionHelper.CriteriaDictionaryToExpression(tableName, key);
if (Find(tableName, criteria).Any())
{
var record = row.Except(key).ToDictionary();
Update(tableName, record, criteria);
}
else
{
Insert(tableName, row, false);
}
}
catch (Exception ex)
{
if (!errorCallback(row, ex)) throw;
}
}
}
public virtual IEnumerable<IDictionary<string, object>> UpsertMany(string tableName, IList<IDictionary<string, object>> list, IAdapterTransaction transaction, bool isResultRequired, Func<IDictionary<string,object>,Exception,bool> errorCallback)
{
var transactionAdapter = this as IAdapterWithTransactions;
if (transactionAdapter == null) throw new NotSupportedException("Transactions are not supported with current adapter.");
foreach (var row in list)
{
IDictionary<string, object> result;
try
{
var key = GetKey(tableName, row);
var criteria = ExpressionHelper.CriteriaDictionaryToExpression(tableName, key);
if (transactionAdapter.Find(tableName, criteria, transaction).Any())
{
var record = row.Except(key).ToDictionary();
transactionAdapter.Update(tableName, record, criteria, transaction);
result = isResultRequired ? transactionAdapter.Find(tableName, criteria, transaction).FirstOrDefault() : null;
}
else
{
result = transactionAdapter.Insert(tableName, row, transaction, isResultRequired);
}
}
catch (Exception ex)
{
if (errorCallback(row, ex)) continue;
throw;
}
yield return result;
}
}
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.