You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ExpressiveCommandBase.cs
+42-14Lines changed: 42 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -270,13 +270,41 @@ public T Execute<T>(Func<TCommand, T> transform)
270
270
}
271
271
}
272
272
273
-
/// <summary>
274
-
/// Internal reader for simplifying iteration. If exposed publicly could potentially hold connections open because an iteration may have not completed.
275
-
/// </summary>
276
-
/// <typeparam name="T">The return type of the transform function.</typeparam>
277
-
/// <param name="transform">The transform function for each IDataRecord.</param>
278
-
/// <returns>The results of each transformation.</returns>
/// Calls ExecuteNonQuery on the underlying command but sets up a return parameter and returns that value.
296
+
/// </summary>
297
+
/// <returns>The value from the return parameter.</returns>
298
+
publicTExecuteReturn<T>()
299
+
=>(T)ExecuteReturn();
300
+
301
+
/// <summary>
302
+
/// Internal reader for simplifying iteration. If exposed publicly could potentially hold connections open because an iteration may have not completed.
303
+
/// </summary>
304
+
/// <typeparam name="T">The return type of the transform function.</typeparam>
305
+
/// <param name="transform">The transform function for each IDataRecord.</param>
306
+
/// <returns>The results of each transformation.</returns>
0 commit comments