AsyncDataAdapter.System.Data.SqlClient/Data/SqlAsyncDataAdapter.cs
/// <summary>Creates a new <see cref="SqlAsyncDbDataAdapter"/> using <paramref name="selectCommand"/> (the <c><see langword="this"/></c> extension method subject) as the <see cref="DbDataAdapter.SelectCommand"/>. Note that the <paramref name="selectCommand"/>'s <see cref="SqlCommand.Connection"/> property MUST be non-null. The connection does not need to be in an Open state yet, however.</summary>
/// <param name="selectCommand">Required. Cannot be null. Must have a valid non-null <see cref="SqlCommand.Connection"/> set.</param>
Creates a new  using  (the  extension method subject) as the . Note that the 's  property MUST be non-null. The connection does not need to be in an Open state yet, however.
Creates a new using ( the extension method subject ) as the . Note that the ' s property MUST be non - null . The connection does not need to be in an Open state yet however .
public static SqlAsyncDbDataAdapter CreateAsyncAdapter( this SqlCommand selectCommand )
        {
            if (selectCommand is null) throw new ArgumentNullException(nameof(selectCommand));
            if( selectCommand.Connection is null ) throw new ArgumentException( message: "The Connection property must be set.", paramName: nameof(selectCommand) );
            return new SqlAsyncDbDataAdapter( selectCommand );
        }
public static SqlAsyncDbDataAdapter CreateAsyncAdapter ( this SqlCommand selectCommand ) { if ( selectCommand is null ) throw new ArgumentNullException ( nameof ( selectCommand ) ) ; if ( selectCommand . Connection is null ) throw new ArgumentException ( message : " " , paramName : nameof ( selectCommand ) ) ; return new SqlAsyncDbDataAdapter ( selectCommand ) ; }
Creates a new  using  (the  extension method subject) as the .
Creates a new using ( the extension method subject ) as the .
SqlCommand
this
selectCommand
Required. Cannot be null. Must have a valid non-null  set.
Required . Cannot be null . Must have a valid non - null set .