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: Source/Core/Extensions/Command._.cs
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,26 @@ public static T ExecuteReader<T>(this IDbCommand command, Func<IDataReader, T> t
233
233
returntransform(reader);
234
234
}
235
235
236
+
/// <summary>
237
+
/// If the <paramref name="command"/> is derived from <see cref="DbCommand"/>, this will call <see cref="DbCommand.ExecuteReaderAsync(CommandBehavior, CancellationToken)"/>;
238
+
/// otherwise it will call <see cref="IDbCommand.ExecuteReader(CommandBehavior)"/>.
239
+
/// </summary>
240
+
/// <param name="command">The <see cref="DbCommand"/> to generate a reader from.</param>
241
+
/// <param name="behavior">The behavior to use with the data reader.</param>
/// If the <paramref name="connection"/> derives from <see cref="DbConnection"/>, this will call <see cref="DbConnection.OpenAsync(CancellationToken)"/>;
96
+
/// otherwise it will call <see cref="IDbConnection.Open()"/>.
0 commit comments