Skip to content

Commit 0de6c15

Browse files
SingleResult: say that disposing the returned view disposes the command
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent d2e41ba commit 0de6c15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Source/Core/SingleResult.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public static IExecuteReader SingleResult(
7474
/// and the five <c>Map</c> overloads that follow are the ones that
7575
/// <see cref="Map{T}(IDbCommand, RowMap{T}?)"/> has.
7676
/// The command is not changed and belongs to the caller; the query never disposes it.
77+
/// A caller that uses the returned view directly as a command should know
78+
/// that disposing the view disposes the command, so dispose one or the other.
7779
/// </para>
7880
/// <para>
7981
/// A later failure can follow a write that already committed,

0 commit comments

Comments
 (0)