diff --git a/Source/Channel/ChannelPump.cs b/Source/Channel/ChannelPump.cs index fec60665..a38ea2a2 100644 --- a/Source/Channel/ChannelPump.cs +++ b/Source/Channel/ChannelPump.cs @@ -18,7 +18,7 @@ internal static class ChannelPump /// to complete the writer when the pass ends, /// with the exception that ended it if there was one. /// - /// Stops the pass. + /// /// The number of rows handed to the writer. internal static async ValueTask Run( TFeed feed, diff --git a/Source/Channel/ToChannel.Produce.cs b/Source/Channel/ToChannel.Produce.cs index 446cf667..d2a3cd8f 100644 --- a/Source/Channel/ToChannel.Produce.cs +++ b/Source/Channel/ToChannel.Produce.cs @@ -25,7 +25,7 @@ public static partial class ChannelDbExtensions /// /// The type of each row. /// The mapped query to read. - /// Cancels the read. + /// /// The reader of the new channel. /// is . /// is already canceled. @@ -43,7 +43,7 @@ public static ChannelReader ToChannelReader( /// if at most one consumer reads the channel at a time. /// /// The mapped query to read. - /// Cancels the read. + /// public static ChannelReader ToChannelReader( this IMappedQuery source, bool singleReader, @@ -61,7 +61,7 @@ public static ChannelReader ToChannelReader( /// /// The type of each row. /// The mapped query to read. - /// Cancels the read. + /// /// The new channel. /// is . /// is already canceled. @@ -79,7 +79,7 @@ public static Channel ToChannel( /// if at most one consumer reads the channel at a time. /// /// The mapped query to read. - /// Cancels the read. + /// public static Channel ToChannel( this IMappedQuery source, bool singleReader, @@ -97,7 +97,7 @@ public static Channel ToChannel( /// It faults with the exception that ended the read. /// /// The mapped query to read. - /// Cancels the read. + /// public static Channel ToChannel( this IMappedQuery source, out Task readCount, @@ -118,7 +118,7 @@ public static Channel ToChannel( /// channel when the read ends. /// It faults with the exception that ended the read. /// - /// Cancels the read. + /// public static Channel ToChannel( this IMappedQuery source, out Task readCount, @@ -146,7 +146,7 @@ public static Channel ToChannel( /// /// The mapped query to read. /// The most rows the channel holds. - /// Cancels the read. + /// /// The reader of the new channel. /// is . /// is less than one. @@ -164,7 +164,7 @@ public static ChannelReader ToBoundedChannelReader( /// /// The mapped query to read. /// The most rows the channel holds. - /// Cancels the read. + /// /// The new channel. /// is . /// is less than one. diff --git a/Source/Channel/ToChannel.Streaming.cs b/Source/Channel/ToChannel.Streaming.cs index c9560ad2..25296dcb 100644 --- a/Source/Channel/ToChannel.Streaming.cs +++ b/Source/Channel/ToChannel.Streaming.cs @@ -24,7 +24,7 @@ public static partial class ChannelDbExtensions /// The longest the channel may make no room while the reader is held. Required; passed to Stream. /// The wait for room before the command runs is not timed. /// - /// Cancels the pass. + /// /// The number of rows written to the channel. /// or is . /// is zero or negative and not . @@ -55,7 +55,7 @@ public static ValueTask ToChannelHoldingConnection( /// The channel to write to. /// The longest the channel may make no room while the reader is held. Required; passed to Stream. /// The wait for room before the command runs is not timed. - /// Cancels the pass. + /// public static ValueTask ToChannelHoldingConnection( this IMappedQuery source, Channel channel, @@ -87,7 +87,7 @@ public static ValueTask ToChannelHoldingConnection( /// The mapped query to read. /// The longest the writer may make no room while the reader is held. Required; passed to Stream. /// The wait for room before the command runs is not timed. - /// Cancels the pass. + /// public static ValueTask ToChannelHoldingConnection( this IMappedQuery source, ChannelWriter writer, @@ -113,7 +113,7 @@ public static ValueTask ToChannelHoldingConnection( /// to complete the writer when the pass ends, /// with the exception that ended it if there was one. /// - /// Cancels the pass. + /// public static ValueTask ToChannelHoldingConnection( this IMappedQuery source, ChannelWriter writer, diff --git a/Source/Channel/ToChannel.Target.cs b/Source/Channel/ToChannel.Target.cs index 3e14b9ed..52f614be 100644 --- a/Source/Channel/ToChannel.Target.cs +++ b/Source/Channel/ToChannel.Target.cs @@ -33,7 +33,7 @@ public static partial class ChannelDbExtensions /// The type of each row. /// The mapped query to read. /// The channel to write to. - /// Cancels the pass. + /// /// The number of rows written to the channel. /// or is . /// is already canceled. @@ -58,7 +58,7 @@ public static ValueTask ToChannel( /// /// The mapped query to read. /// The channel to write to. - /// Cancels the pass. + /// public static ValueTask ToChannel( this IMappedQuery source, Channel channel, @@ -82,7 +82,7 @@ public static ValueTask ToChannel( /// /// The writer to write to. /// The mapped query to read. - /// Cancels the pass. + /// public static ValueTask ToChannel( this IMappedQuery source, ChannelWriter writer, @@ -104,7 +104,7 @@ public static ValueTask ToChannel( /// to complete the writer when the pass ends, /// with the exception that ended it if there was one. /// - /// Cancels the pass. + /// public static ValueTask ToChannel( this IMappedQuery source, ChannelWriter writer, diff --git a/Source/Core/BoundCall.cs b/Source/Core/BoundCall.cs index 91872bce..332ae864 100644 --- a/Source/Core/BoundCall.cs +++ b/Source/Core/BoundCall.cs @@ -254,7 +254,7 @@ public static class BoundCallExtensions /// /// The type of the value. /// The bound call. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the value. /// There was no row or the value is NULL and is a non-nullable value type (ask for the nullable type and use ?? for a default), the value does not convert to , or it is out of its range (the conversion's own error is the inner exception). /// is a value, which is bound to nothing. @@ -275,7 +275,7 @@ public static ValueTask ExecuteScalarAsync( /// It is not a procedure's return value. /// /// The bound call. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the number of rows affected. /// is a value, which is bound to nothing. /// is canceled. diff --git a/Source/Core/Core/RowReader.cs b/Source/Core/Core/RowReader.cs index 7751bbdb..4d391b73 100644 --- a/Source/Core/Core/RowReader.cs +++ b/Source/Core/Core/RowReader.cs @@ -538,7 +538,7 @@ internal static InvalidOperationException NoRows(string terminal) /// The number of rows to read; 0 reads none. /// See . /// The sink that receives the rows. - /// The token that cancels the read. + /// /// Cancels the command at an early stop, or . /// A task whose result is the sink, holding the rows. // ref parameters cannot cross an await, so the sink is passed and returned @@ -594,7 +594,7 @@ public static async ValueTask FillAsync( /// See . /// Makes the result from the chain. /// The pool and the clearing rule of the chain. - /// The token that cancels the read. + /// /// Cancels the command at an early stop, or . /// A task whose result is what made from the rows. // One async method for every collecting terminal (ToList, ToArray, @@ -688,7 +688,7 @@ public static async ValueTask CollectAsync( /// The number of rows to skip. /// The number of rows the query is limited to; 0 reads none. /// See . - /// The token that cancels the read. + /// /// Cancels the command at an early stop, or . /// A task whose result is if there is a row; otherwise, . public static async ValueTask AnyAsync( @@ -712,7 +712,7 @@ public static async ValueTask AnyAsync( /// The number of rows to skip. /// The most rows to count; 0 reads none, and -1 is no limit. /// See . - /// The token that cancels the read. + /// /// Cancels the command at the take limit, or . /// A task whose result is the number of rows. /// There are more than rows. @@ -761,7 +761,7 @@ internal static ValueTask NextRowAsync(IDataReader reader, bool useReadAsy /// See . /// to read through the later result sets once the rows end; otherwise, . /// Cancels the command at an early stop, or . - /// The token that cancels the read. + /// /// A lazy asynchronous sequence of the mapped rows. public static async IAsyncEnumerable StreamAsync( IRowSource source, DbDataReader reader, int skip, int take, bool useReadAsync, bool readThrough, ReaderAbandon? abandon = null, @@ -842,7 +842,7 @@ static async ValueTask Core(DbDataReader reader, int skip, bool useReadAsy /// /// The reader. /// to read with ReadAsync; otherwise, to read with Read. -/// The token that cancels the read. +/// /// A task whose result is if there is a row; otherwise, . static ValueTask ReadRowAsync(DbDataReader reader, bool useReadAsync, CancellationToken cancellationToken) { diff --git a/Source/Core/DbQueryCall.cs b/Source/Core/DbQueryCall.cs index 96146631..a1a8112d 100644 --- a/Source/Core/DbQueryCall.cs +++ b/Source/Core/DbQueryCall.cs @@ -49,7 +49,7 @@ internal object SourceCore /// The connection, transaction, pool or factory the query is bound to. /// /// The connection, transaction, pool or factory the query was bound to with Using. - /// This is a value, which is bound to nothing. + /// public object Source => SourceCore; /// diff --git a/Source/Core/DbQueryRunner.cs b/Source/Core/DbQueryRunner.cs index 214d9efa..55a47d76 100644 --- a/Source/Core/DbQueryRunner.cs +++ b/Source/Core/DbQueryRunner.cs @@ -96,7 +96,7 @@ public static Lease Open(object source) /// needs to be. /// /// The connection, transaction, pool or factory. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the lease. /// public static async ValueTask OpenAsync( @@ -334,7 +334,7 @@ static ProcedureKey KeyOf(DbConnection connection, DbQuery definition) /// The query definition. /// The connection, transaction, pool or factory. /// The connection of the run. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the set of names, or when they are not known. // Not an async method itself: when the names are remembered (the usual // case) it finishes without a state machine; only reading them is @@ -440,7 +440,7 @@ public static TResult Run( /// The state to pass to . /// The function that reads the reader. /// The behavior to run the reader with. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the result of . /// is . /// is already canceled. @@ -565,7 +565,7 @@ public static ValueTask NonQueryAsync( /// The bound parameters, or for none. /// Runs the command. /// Converts what the command returned; it runs with the connection released. - /// The token that governs the call. + /// // One state machine for the whole call. static async ValueTask ExecuteAsync( DbQuery definition, diff --git a/Source/Core/DbQueryUsing.cs b/Source/Core/DbQueryUsing.cs index 7d88ce04..e76c707e 100644 --- a/Source/Core/DbQueryUsing.cs +++ b/Source/Core/DbQueryUsing.cs @@ -41,7 +41,7 @@ object SourceOrThrow /// The connection, transaction, pool or factory the query is bound to. /// /// The connection, transaction, pool or factory the query was bound to with Using. - /// This is a value, which is bound to nothing. + /// public object Source => SourceOrThrow; /// @@ -76,14 +76,14 @@ public MappedQuery AsDictionaryRows() => ToCall().AsDictionaryRows(); /// - /// This is a value, which is bound to nothing. + /// // A member, so the value is not boxed as it would be for the extension. public ValueTask AnyAsync( CancellationToken cancellationToken = default) => ToCall().AnyAsync(cancellationToken); /// - /// This is a value, which is bound to nothing. + /// public ValueTask CountAsync( CancellationToken cancellationToken = default) => ToCall().CountAsync(cancellationToken); diff --git a/Source/Core/ExpressiveCommandBase.cs b/Source/Core/ExpressiveCommandBase.cs index 70d88d61..1baf95d8 100644 --- a/Source/Core/ExpressiveCommandBase.cs +++ b/Source/Core/ExpressiveCommandBase.cs @@ -840,7 +840,7 @@ protected virtual ValueTask> GetProcedureParameterNamesAs /// the @name markers of the text. /// /// An open connection to run the lookup on. - /// The token that governs the call. + /// /// /// The set of names, or when they are not known. /// @@ -1209,7 +1209,7 @@ private protected ValueTask ExecuteCoreAsync(TState st /// The type of the result. /// The state to pass to the function. /// The function to run. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the result of . /// /// is already canceled. @@ -1304,7 +1304,7 @@ private protected async ValueTask ExecuteCoreAsync(TSt /// /// The connection. /// The pool it was taken from, or . - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the scope. static ValueTask> EnsureOpenScopeUnlessOpenAsync( TConnection connection, diff --git a/Source/Core/Extensions/Connections.docs.xml b/Source/Core/Extensions/Connections.docs.xml index ff8a5ac5..8f1c7cdf 100644 --- a/Source/Core/Extensions/Connections.docs.xml +++ b/Source/Core/Extensions/Connections.docs.xml @@ -322,6 +322,12 @@ The transaction to create the command from. + + + The transaction has no connection. + + + The number of seconds to wait before the command times out. The default diff --git a/Source/Core/Extensions/Transaction.CreateCommand.cs b/Source/Core/Extensions/Transaction.CreateCommand.cs index 37f5ff89..a06fc46e 100644 --- a/Source/Core/Extensions/Transaction.CreateCommand.cs +++ b/Source/Core/Extensions/Transaction.CreateCommand.cs @@ -13,7 +13,7 @@ public static partial class TransactionExtensions /// /// A new that the caller owns and disposes. Its is . /// or is . - /// The transaction has no connection. + /// public static IDbCommand CreateCommand(this IDbTransaction transaction, CommandType type, string commandText, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) { @@ -44,7 +44,7 @@ public static IDbCommand CreateCommand(this IDbTransaction transaction, /// /// A new that the caller owns and disposes. Its is . /// or is . - /// The transaction has no connection. + /// public static IDbCommand CreateTextCommand(this IDbTransaction transaction, string commandText, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) => transaction.CreateCommand(CommandType.Text, commandText, secondsTimeout); @@ -57,7 +57,7 @@ public static IDbCommand CreateTextCommand(this IDbTransaction transaction, /// /// A new that the caller owns and disposes. Its is . /// or is . - /// The transaction has no connection. + /// public static IDbCommand CreateStoredProcedureCommand(this IDbTransaction transaction, string procedureName, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) => transaction.CreateCommand(CommandType.StoredProcedure, procedureName, secondsTimeout); diff --git a/Source/Core/IMappedQuery.cs b/Source/Core/IMappedQuery.cs index 65b71b4d..200546c9 100644 --- a/Source/Core/IMappedQuery.cs +++ b/Source/Core/IMappedQuery.cs @@ -13,7 +13,7 @@ public interface IMappedQuery /// /// Reads the rows into pooled chunks, one chunk at a time, and frees the connection before the consumer sees a row. /// - /// Cancels the read. + /// /// The chunks, in order. A chunk is valid until the enumeration moves on, so copy what you keep. The enumeration can be taken once. IAsyncEnumerable> ToPooledBufferStream( CancellationToken cancellationToken = default); @@ -38,7 +38,7 @@ IAsyncEnumerable> ToPooledBufferStream( /// The longest you may go without pulling the next row. Required; there is no default. /// (or a span over milliseconds, about 24.8 days) accepts an unbounded hold. /// - /// Cancels the read; the enumeration then throws . + /// /// The rows. The enumeration can be taken once. IAsyncEnumerable Stream( TimeSpan stallTimeout, @@ -64,7 +64,7 @@ IAsyncEnumerable Stream( /// The longest you may go without pulling the next row once the buffer is full. Required; there is no default. /// (or a span over milliseconds, about 24.8 days) accepts an unbounded hold. /// - /// Cancels the read; the enumeration then throws . + /// /// The rows. The enumeration can be taken once. IAsyncEnumerable StreamBuffered( TimeSpan stallTimeout, @@ -75,7 +75,7 @@ IAsyncEnumerable StreamBuffered( /// /// The longest you may go without pulling the next row once the buffer is full. Required; there is no default. /// The most rows the read runs ahead of your loop, besides the one it holds while it waits for room; 0 reads as Stream does (no channel, nothing ahead), and a negative size throws. - /// Cancels the read; the enumeration then throws . + /// /// The rows. The enumeration can be taken once. /// is negative. IAsyncEnumerable StreamBuffered( diff --git a/Source/Core/Mapped.docs.xml b/Source/Core/Mapped.docs.xml index 2f6ca9e6..db7af9c2 100644 --- a/Source/Core/Mapped.docs.xml +++ b/Source/Core/Mapped.docs.xml @@ -7,6 +7,8 @@ (the file path is relative to the source file that includes it, so Extensions\*.cs say ../Mapped.docs.xml), so a sentence used by many members is written here once and cannot drift between them. + The Channel and Dataflow packages include the token keys from here + (../Core/Mapped.docs.xml), so one wording serves all three. The pooled-memory text is the other file, PooledMemory.docs.xml. Every key is a fragment: parameters, type parameters, exceptions, returns or paragraphs that go into the including member's own . @@ -56,6 +58,13 @@ + + + This is a value, which is bound to nothing, + or the stream was enumerated before. + + + The mapped query, to be read with a terminal. @@ -85,6 +94,25 @@ + + The token that cancels the read. + + + + + The token that cancels the read; the enumeration then throws + . + + + + + The token that cancels the pass. + + + + The token that governs the call. + + All rows are buffered in memory before the call returns. diff --git a/Source/Core/MappedDbQuery.cs b/Source/Core/MappedDbQuery.cs index b55d4eda..de30a8c6 100644 --- a/Source/Core/MappedDbQuery.cs +++ b/Source/Core/MappedDbQuery.cs @@ -327,7 +327,7 @@ internal MappedDbQueryUsing(MappedDbQuery definition, DbQueryUsing source) /// Adds the parameters. /// The parameters. /// The mapped query, to be read with a terminal. - /// This is . + /// public MappedQuery AddParams(TParams values) => (_definition ?? throw DbQueryRunner.Unbound()).View(_using.AddParams(values)); } @@ -377,7 +377,7 @@ public UnboundCall AddParams(TValues values) /// The connection. It is opened if it is not open, and closed again if the query opened it. /// The mapped query, to be read with a terminal. /// is . - /// This is . + /// public MappedQuery Using(DbConnection connection) // DbQuery.Using throws ArgumentNullException for a null source. => Bind(Definition.Query.Using(connection)); @@ -386,7 +386,7 @@ public MappedQuery Using(DbConnection connection) /// The transaction. Its connection must be open when a terminal runs; it is used and left open. /// The mapped query, to be read with a terminal. /// is . - /// This is . + /// public MappedQuery Using(DbTransaction transaction) // DbQuery.Using throws ArgumentNullException for a null source. => Bind(Definition.Query.Using(transaction)); @@ -396,7 +396,7 @@ public MappedQuery Using(DbTransaction transaction) /// The pool. A connection is taken for the call and given back when it ends. /// The mapped query, to be read with a terminal. /// is . - /// This is . + /// public MappedQuery Using(IDbConnectionPool pool) where TConnection : DbConnection // DbQuery.Using throws ArgumentNullException for a null source. @@ -407,7 +407,7 @@ public MappedQuery Using(IDbConnectionPool pool) /// The factory. A connection is made for the call and disposed when it ends. /// The mapped query, to be read with a terminal. /// is . - /// This is . + /// public MappedQuery Using(IDbConnectionFactory factory) where TConnection : DbConnection // DbQuery.Using throws ArgumentNullException for a null source. diff --git a/Source/Core/MappedQuery.cs b/Source/Core/MappedQuery.cs index 2b6d7cfd..44d10e1c 100644 --- a/Source/Core/MappedQuery.cs +++ b/Source/Core/MappedQuery.cs @@ -192,7 +192,7 @@ readonly struct MappedQueryCore( /// /// Gets the command the query reads from: its own command, or the call of a definition. /// - /// A default value was not created by Map. + /// // The call is boxed here. public IExecuteReader Command => _command ?? (_call.IsBound @@ -202,7 +202,7 @@ public IExecuteReader Command /// /// Throws when this is a default value, which has no command. /// - /// A default value was not created by Map. + /// public void EnsureCommand() { if (_command is null && !_call.IsBound) throw Default(); @@ -223,7 +223,7 @@ MappedQueryCore Checked(MappedQueryCore next) /// /// The call. /// if the query was made from a definition; otherwise, . - /// A default value was not created by Map. + /// public bool TryGetCall(out DbQueryCall call) { EnsureCommand(); @@ -1106,7 +1106,7 @@ await RowReader.FillAsync( /// They rent from the pool of UsePool (the shared array pool when /// there was none). /// - /// The token that cancels the read. + /// /// The buffer, already reading. // The producer is in ChunkProducer.cs; the clear follows the rule of PoolClearing. public PooledBuffer ToPooledBuffer( @@ -1235,7 +1235,7 @@ public readonly record struct MappedQuery /// /// Use it to key a cache on the query. Nothing runs by reading it. /// - /// A default value was not created by Map. + /// public IExecuteReader Command => _core.Command; /// Skips the first mapped rows. @@ -1770,10 +1770,10 @@ public IAsyncEnumerable> ToPooledBufferStream( /// (or a span over milliseconds, about 24.8 days) accepts an unbounded hold. /// It does not limit the whole call: use a token from CancellationTokenSource.CancelAfter for that. /// - /// Cancels the read; the enumeration then throws . + /// /// The rows, in the order the reader returns them. The enumeration can be taken once. /// is zero or negative and not . - /// The query is a default value, or a second enumeration is taken. + /// public IAsyncEnumerable Stream( TimeSpan stallTimeout, CancellationToken cancellationToken = default) @@ -1800,10 +1800,10 @@ public IAsyncEnumerable Stream( /// The longest you may go without pulling the next row once the buffer is full. Required; there is no default. /// (or a span over milliseconds, about 24.8 days) accepts an unbounded hold. /// - /// Cancels the read; the enumeration then throws . + /// /// The rows, in the order the reader returns them. The enumeration can be taken once. /// is zero or negative and not . - /// The query is a default value, or a second enumeration is taken. + /// public IAsyncEnumerable StreamBuffered( TimeSpan stallTimeout, CancellationToken cancellationToken = default) @@ -1818,10 +1818,10 @@ public IAsyncEnumerable StreamBuffered( /// /// The longest you may go without pulling the next row once the buffer is full. Required; there is no default. /// The most rows the read runs ahead of your loop, besides the one it holds while it waits for room; 0 reads as Stream does (no channel, nothing ahead), and a negative size throws. - /// Cancels the read; the enumeration then throws . + /// /// The rows, in the order the reader returns them. The enumeration can be taken once. /// is zero or negative and not , or is negative. - /// The query is a default value, or a second enumeration is taken. + /// public IAsyncEnumerable StreamBuffered( TimeSpan stallTimeout, int bufferSize, diff --git a/Source/Core/MappedViews.cs b/Source/Core/MappedViews.cs index 4008afdd..1273c229 100644 --- a/Source/Core/MappedViews.cs +++ b/Source/Core/MappedViews.cs @@ -741,7 +741,7 @@ public TResult Read( /// For rows held in memory use . /// /// Receives the rows, which are read as it enumerates them. - /// The token that cancels the read. + /// public ValueTask ReadAsync( Func, CancellationToken, ValueTask> handler, CancellationToken cancellationToken) @@ -754,7 +754,7 @@ public ValueTask ReadAsync( /// /// The type the handler returns. /// Receives the rows, which are read as it enumerates them. - /// The token that cancels the read. + /// /// The value the handler returns. public ValueTask ReadAsync( Func< @@ -1191,7 +1191,7 @@ public TResult Read( /// Passes the rows of the table to the asynchronous handler. /// Receives the rows, which are read as it enumerates them. - /// The token that cancels the read. + /// public ValueTask ReadAsync( Func, CancellationToken, ValueTask> handler, CancellationToken cancellationToken) @@ -1200,7 +1200,7 @@ public ValueTask ReadAsync( /// Passes the rows of the table to the asynchronous handler and returns its result. /// The type the handler returns. /// Receives the rows, which are read as it enumerates them. - /// The token that cancels the read. + /// /// The value the handler returns. public ValueTask ReadAsync( Func< diff --git a/Source/Core/ProcedureSchemaNames.cs b/Source/Core/ProcedureSchemaNames.cs index f408b462..c5b1c915 100644 --- a/Source/Core/ProcedureSchemaNames.cs +++ b/Source/Core/ProcedureSchemaNames.cs @@ -55,7 +55,7 @@ internal static ImmutableArray Get(DbConnection connection, string proce /// /// An open connection to run the lookup on. /// The procedure name as given to the command. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the names in ordinal order, or an empty or default array when they are not known. internal static ValueTask> GetAsync(DbConnection connection, string procedure, CancellationToken cancellationToken) { @@ -69,7 +69,7 @@ internal static ValueTask> GetAsync(DbConnection connecti /// /// An open connection to run the lookup on. /// The procedure name as given to the command. - /// The token that governs the call. + /// /// A task that represents the asynchronous operation; its result is the names in ordinal order, or an empty or default array when they are not known. internal static async ValueTask> GetAsync(DbConnection connection, string procedure, CancellationToken cancellationToken) { diff --git a/Source/Core/ReaderAbandon.cs b/Source/Core/ReaderAbandon.cs index 86602ea9..ff0545ea 100644 --- a/Source/Core/ReaderAbandon.cs +++ b/Source/Core/ReaderAbandon.cs @@ -227,7 +227,7 @@ public void CancelIfMore(IDataReader reader) /// /// The reader, positioned on the last row the terminal needs. /// Whether to read with ReadAsync. - /// The token that cancels the read. + /// /// A task that represents the asynchronous operation. public async ValueTask CancelIfMoreAsync(IDataReader reader, bool useReadAsync, CancellationToken cancellationToken) { diff --git a/Source/Dataflow/BlockPump.cs b/Source/Dataflow/BlockPump.cs index 08cecd66..464ca528 100644 --- a/Source/Dataflow/BlockPump.cs +++ b/Source/Dataflow/BlockPump.cs @@ -20,7 +20,7 @@ internal static class BlockPump /// to complete the target when the pass ends, /// or to fault it with the exception that ended the pass. /// - /// Stops the pass. + /// /// The number of rows the target accepted. internal static async ValueTask Run( TFeed feed, diff --git a/Source/Dataflow/DataflowExtensions.cs b/Source/Dataflow/DataflowExtensions.cs index 9048c202..481b17b3 100644 --- a/Source/Dataflow/DataflowExtensions.cs +++ b/Source/Dataflow/DataflowExtensions.cs @@ -30,7 +30,7 @@ public static partial class DataflowExtensions /// /// The type of each row. /// The mapped query to read. - /// Cancels the read. + /// /// The new block. /// is . /// is already canceled. @@ -51,7 +51,7 @@ public static IReceivableSourceBlock AsSourceBlock( /// A bound limits the block, not memory: the query is still read at full /// speed, and the rows the block has no room for wait in an internal queue. /// - /// Cancels the read. + /// /// The new block. /// or is . /// is already canceled. @@ -137,7 +137,7 @@ IAsyncEnumerable> chunks /// The type of each row. /// The mapped query to read. /// The block to send to. - /// Cancels the pass. + /// /// The number of rows the block accepted. /// or is . /// is already canceled. @@ -169,7 +169,7 @@ public static ValueTask ToTargetBlock( /// to complete the block when the pass ends, /// or to fault it with the exception that ended the pass, a cancel included. /// - /// Cancels the pass. + /// /// The number of rows the block accepted. /// or is . /// is already canceled. @@ -218,7 +218,7 @@ public static ValueTask ToTargetBlock( /// The longest the block may take no row while the reader is held. /// Required; passed to Stream. /// - /// Cancels the pass. + /// /// The number of rows the block accepted. /// or is . /// is zero or negative and not . @@ -263,7 +263,7 @@ public static ValueTask ToTargetBlockHoldingConnection( /// to complete the block when the pass ends, /// or to fault it with the exception that ended the pass, a cancel included. /// - /// Cancels the pass. + /// /// The number of rows the block accepted. /// or is . /// is zero or negative and not . diff --git a/Source/MSSqlClient/Extensions/MSSqlClient.docs.xml b/Source/MSSqlClient/Extensions/MSSqlClient.docs.xml index aa5d7e88..a008efb2 100644 --- a/Source/MSSqlClient/Extensions/MSSqlClient.docs.xml +++ b/Source/MSSqlClient/Extensions/MSSqlClient.docs.xml @@ -217,6 +217,12 @@ The transaction to create the command from. + + + The transaction has no connection. + + + The number of seconds to wait before the command times out. The default is 60 seconds. diff --git a/Source/MSSqlClient/Extensions/Transaction.CreateCommand.cs b/Source/MSSqlClient/Extensions/Transaction.CreateCommand.cs index 8a4db417..5486cbb6 100644 --- a/Source/MSSqlClient/Extensions/Transaction.CreateCommand.cs +++ b/Source/MSSqlClient/Extensions/Transaction.CreateCommand.cs @@ -10,7 +10,7 @@ public static partial class SqlTransactionExtensions /// /// /// or is . - /// The transaction has no connection. + /// public static SqlCommand CreateCommand(this SqlTransaction transaction, CommandType type, string commandText, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) { @@ -44,7 +44,7 @@ public static SqlCommand CreateCommand(this SqlTransaction transaction, /// /// /// or is . - /// The transaction has no connection. + /// public static SqlCommand CreateTextCommand(this SqlTransaction transaction, string commandText, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) => transaction.CreateCommand(CommandType.Text, commandText, secondsTimeout); @@ -57,7 +57,7 @@ public static SqlCommand CreateTextCommand(this SqlTransaction transaction, /// /// /// or is . - /// The transaction has no connection. + /// public static SqlCommand CreateStoredProcedureCommand(this SqlTransaction transaction, string procedureName, int secondsTimeout = CommandTimeout.DEFAULT_SECONDS) => transaction.CreateCommand(CommandType.StoredProcedure, procedureName, secondsTimeout);