System.Data.Common
Represents a nonexistent value. This class cannot be inherited.
1
Returns an empty string ().
An empty string ().
2
Returns an empty string using the specified .
An empty string ().
The to be used to format the return value.-or- null to obtain the format information from the current locale setting of the operating system.
2
Represents the sole instance of the class.
1
Provides a description of the results of the query and its effect on the database.
2
When the command is executed, the associated Connection object is closed when the associated DataReader object is closed.
The query may return multiple result sets. Execution of the query may affect the database state. Default sets no flags, so calling ExecuteReader(CommandBehavior.Default) is functionally equivalent to calling ExecuteReader().
The query returns column and primary key information.
The query returns column information only. When using , the .NET Framework Data Provider for SQL Server precedes the statement being executed with SET FMTONLY ON.
Provides a way for the DataReader to handle rows that contain columns with large binary values. Rather than loading the entire row, SequentialAccess enables the DataReader to load data as a stream. You can then use the GetBytes or GetChars method to specify a byte location to start the read operation, and a limited buffer size for the data being returned.
The query returns a single result set.
The query is expected to return a single row of the first result set. Execution of the query may affect the database state. Some .NET Framework data providers may, but are not required to, use this information to optimize the performance of the command. When you specify with the method of the object, the .NET Framework Data Provider for OLE DB performs binding using the OLE DB IRow interface if it is available. Otherwise, it uses the IRowset interface. If your SQL statement is expected to return only a single row, specifying can also improve application performance. It is possible to specify SingleRow when executing queries that are expected to return multiple result sets. In that case, where both a multi-result set SQL query and single row are specified, the result returned will contain only the first row of the first result set. The other result sets of the query will not be returned.
Specifies how a command string is interpreted.
2
The name of a stored procedure.
The name of a table.
An SQL text command. (Default.)
Describes the current state of the connection to a data source.
2
The connection to the data source is broken. This can occur only after the connection has been opened. A connection in this state may be closed and then re-opened. (This value is reserved for future versions of the product.)
The connection is closed.
The connection object is connecting to the data source.
The connection object is executing a command. (This value is reserved for future versions of the product.)
The connection object is retrieving data. (This value is reserved for future versions of the product.)
The connection is open.
Specifies the data type of a field, a property, or a Parameter object of a .NET Framework data provider.
2
A variable-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
A fixed-length stream of non-Unicode characters.
A variable-length stream of binary data ranging between 1 and 8,000 bytes.
A simple type representing Boolean values of true or false.
An 8-bit unsigned integer ranging in value from 0 to 255.
A currency value ranging from -2 63 (or -922,337,203,685,477.5808) to 2 63 -1 (or +922,337,203,685,477.5807) with an accuracy to a ten-thousandth of a currency unit.
A type representing a date value.
A type representing a date and time value.
Date and time data. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds.
Date and time data with time zone awareness. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Time zone value range is -14:00 through +14:00.
A simple type representing values ranging from 1.0 x 10 -28 to approximately 7.9 x 10 28 with 28-29 significant digits.
A floating point type representing values ranging from approximately 5.0 x 10 -324 to 1.7 x 10 308 with a precision of 15-16 digits.
A globally unique identifier (or GUID).
An integral type representing signed 16-bit integers with values between -32768 and 32767.
An integral type representing signed 32-bit integers with values between -2147483648 and 2147483647.
An integral type representing signed 64-bit integers with values between -9223372036854775808 and 9223372036854775807.
A general type representing any reference or value type not explicitly represented by another DbType value.
An integral type representing signed 8-bit integers with values between -128 and 127.
A floating point type representing values ranging from approximately 1.5 x 10 -45 to 3.4 x 10 38 with a precision of 7 digits.
A type representing Unicode character strings.
A fixed-length string of Unicode characters.
A type representing a SQL Server DateTime value. If you want to use a SQL Server time value, use .
An integral type representing unsigned 16-bit integers with values between 0 and 65535.
An integral type representing unsigned 32-bit integers with values between 0 and 4294967295.
An integral type representing unsigned 64-bit integers with values between 0 and 18446744073709551615.
A variable-length numeric value.
A parsed representation of an XML document or fragment.
Specifies the transaction locking behavior for the connection.
2
The pending changes from more highly isolated transactions cannot be overwritten.
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data.
A dirty read is possible, meaning that no shared locks are issued and no exclusive locks are honored.
Locks are placed on all data that is used in a query, preventing other users from updating the data. Prevents non-repeatable reads but phantom rows are still possible.
A range lock is placed on the , preventing other users from updating or inserting rows into the dataset until the transaction is complete.
Reduces blocking by storing a version of data that one application can read while another is modifying the same data. Indicates that from one transaction you cannot see changes made in other transactions, even if you requery.
A different isolation level than the one specified is being used, but the level cannot be determined.
Specifies the type of a parameter within a query relative to the .
2
The parameter is an input parameter.
The parameter is capable of both input and output.
The parameter is an output parameter.
The parameter represents a return value from an operation such as a stored procedure, built-in function, or user-defined function.
Provides data for the state change event of a .NET Framework data provider.
2
Initializes a new instance of the class, when given the original state and the current state of the object.
One of the values.
One of the values.
Gets the new state of the connection. The connection object will be in the new state already when the event is fired.
One of the values.
1
Gets the original state of the connection.
One of the values.
1
Represents the method that will handle the event.
The source of the event.
The that contains the event data.
2
Specifies how query command results are applied to the row being updated.
2
Both the output parameters and the first returned row are mapped to the changed row in the .
The data in the first returned row is mapped to the changed row in the .
Any returned parameters or rows are ignored.
Output parameters are mapped to the changed row in the .
Represents an SQL statement or stored procedure to execute against a data source. Provides a base class for database-specific classes that represent commands.
1
Constructs an instance of the object.
Attempts to cancels the execution of a .
1
Gets or sets the text command to run against the data source.
The text command to execute. The default value is an empty string ("").
1
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
The time in seconds to wait for the command to execute.
2
Indicates or specifies how the property is interpreted.
One of the values. The default is Text.
1
Gets or sets the used by this .
The connection to the data source.
1
Creates a new instance of a object.
A object.
Creates a new instance of a object.
A object.
1
Gets or sets the used by this .
The connection to the data source.
Gets the collection of objects.
The parameters of the SQL statement or stored procedure.
Gets or sets the within which this object executes.
The transaction within which a Command object of a .NET Framework data provider executes. The default value is a null reference (Nothing in Visual Basic).
Gets or sets a value indicating whether the command object should be visible in a customized interface control.
true, if the command object should be visible in a control; otherwise false. The default is true.
2
Executes the command text against the connection.
A task representing the operation.
An instance of .
An error occurred while executing the command text.
An invalid value.
Providers should implement this method to provide a non-default implementation for overloads.The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteReader will be communicated via the returned Task Exception property.This method accepts a cancellation token that can be used to request the operation to be cancelled early. Implementations may ignore this request.
A task representing the asynchronous operation.
Options for statement execution and data retrieval.
The token to monitor for cancellation requests.
An error occurred while executing the command text.
An invalid value.
Executes a SQL statement against a connection object.
The number of rows affected.
1
An asynchronous version of , which executes a SQL statement against a connection object.Invokes with CancellationToken.None.
A task representing the asynchronous operation.
An error occurred while executing the command text.
This is the asynchronous version of . Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
A task representing the asynchronous operation.
The token to monitor for cancellation requests.
An error occurred while executing the command text.
Executes the against the , and returns an .
A object.
1
Executes the against the , and returns an using one of the values.
An object.
One of the values.
1
An asynchronous version of , which executes the against the and returns a .Invokes with CancellationToken.None.
A task representing the asynchronous operation.
An error occurred while executing the command text.
An invalid value.
An asynchronous version of , which executes the against the and returns a .Invokes .
A task representing the asynchronous operation.
One of the values.
An error occurred while executing the command text.
An invalid value.
Invokes .
A task representing the asynchronous operation.
One of the values.
The token to monitor for cancellation requests.
An error occurred while executing the command text.
An invalid value.
An asynchronous version of , which executes the against the and returns a . This method propagates a notification that operations should be canceled.Invokes .
A task representing the asynchronous operation.
The token to monitor for cancellation requests.
An error occurred while executing the command text.
An invalid value.
Executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored.
The first column of the first row in the result set.
1
An asynchronous version of , which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored.Invokes with CancellationToken.None.
A task representing the asynchronous operation.
An error occurred while executing the command text.
This is the asynchronous version of . Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteScalar will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
A task representing the asynchronous operation.
The token to monitor for cancellation requests.
An error occurred while executing the command text.
Gets the collection of objects. For more information on parameters, see Configuring Parameters and Parameter Data Types.
The parameters of the SQL statement or stored procedure.
1
Creates a prepared (or compiled) version of the command on the data source.
1
Gets or sets the within which this object executes.
The transaction within which a Command object of a .NET Framework data provider executes. The default value is a null reference (Nothing in Visual Basic).
1
Gets or sets how command results are applied to the when used by the Update method of a .
One of the values. The default is Both unless the command is automatically generated. Then the default is None.
1
Represents a connection to a database.
1
Initializes a new instance of the class.
Starts a database transaction.
An object representing the new transaction.
Specifies the isolation level for the transaction.
Starts a database transaction.
An object representing the new transaction.
1
Starts a database transaction with the specified isolation level.
An object representing the new transaction.
Specifies the isolation level for the transaction.
1
Changes the current database for an open connection.
Specifies the name of the database for the connection to use.
2
Closes the connection to the database. This is the preferred method of closing any open connection.
The connection-level error that occurred while opening the connection.
1
Gets or sets the string used to open the connection.
The connection string used to establish the initial connection. The exact contents of the connection string depend on the specific data source for this connection. The default value is an empty string.
1
Gets the time to wait while establishing a connection before terminating the attempt and generating an error.
The time (in seconds) to wait for a connection to open. The default value is determined by the specific type of connection that you are using.
2
Creates and returns a object associated with the current connection.
A object.
1
Creates and returns a object associated with the current connection.
A object.
Gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened.
The name of the current database or the name of the database to be used after a connection is opened. The default value is an empty string.
1
Gets the name of the database server to which to connect.
The name of the database server to which to connect. The default value is an empty string.
1
Raises the event.
A that contains the event data.
Opens a database connection with the settings specified by the .
1
An asynchronous version of , which opens a database connection with the settings specified by the . This method invokes the virtual method with CancellationToken.None.
A task representing the asynchronous operation.
This is the asynchronous version of . Providers should override with an appropriate implementation. The cancellation token can optionally be honored.The default implementation invokes the synchronous call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by Open will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbConnection object until the returned Task is complete.
A task representing the asynchronous operation.
The cancellation instruction.
Gets a string that represents the version of the server to which the object is connected.
The version of the database. The format of the string returned depends on the specific type of connection you are using.
was called while the returned Task was not completed and the connection was not opened after a call to .
2
Gets a string that describes the state of the connection.
The state of the connection. The format of the string returned depends on the specific type of connection you are using.
1
Occurs when the state of the event changes.
Provides a base class for strongly typed connection string builders.
1
Initializes a new instance of the class.
Adds an entry with the specified key and value into the .
The key to add to the .
The value for the specified key.
is a null reference (Nothing in Visual Basic).
The is read-only. -or-The has a fixed size.
1
Provides an efficient and safe way to append a key and value to an existing object.
The to which to add the key/value pair.
The key to be added.
The value for the supplied key.
2
Clears the contents of the instance.
The is read-only.
1
Gets or sets the connection string associated with the .
The current connection string, created from the key/value pairs that are contained within the . The default value is an empty string.
An invalid connection string argument has been supplied.
1
Determines whether the contains a specific key.
true if the contains an entry with the specified key; otherwise false.
The key to locate in the .
is a null reference (Nothing in Visual Basic).
1
Gets the current number of keys that are contained within the property.
The number of keys that are contained within the connection string maintained by the instance.
1
Compares the connection information in this object with the connection information in the supplied object.
true if the connection information in both of the objects causes an equivalent connection string; otherwise false.
The to be compared with this object.
1
Gets or sets the value associated with the specified key.
The value associated with the specified key. If the specified key is not found, trying to get it returns a null reference (Nothing in Visual Basic), and trying to set it creates a new element using the specified key.Passing a null (Nothing in Visual Basic) key throws an . Assigning a null value removes the key/value pair.
The key of the item to get or set.
is a null reference (Nothing in Visual Basic).
The property is set, and the is read-only. -or-The property is set, does not exist in the collection, and the has a fixed size.
1
Gets an that contains the keys in the .
An that contains the keys in the .
1
Removes the entry with the specified key from the instance.
true if the key existed within the connection string and was removed; false if the key did not exist.
The key of the key/value pair to be removed from the connection string in this .
is null (Nothing in Visual Basic)
The is read-only, or the has a fixed size.
1
Indicates whether the specified key exists in this instance.
true if the contains an entry with the specified key; otherwise false.
The key to locate in the .
2
Copies the elements of the to an , starting at a particular index.
The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the is synchronized (thread safe).
true if access to the is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the .
An object that can be used to synchronize access to the .
Adds an element with the provided key and value to the object.
The to use as the key of the element to add.
The to use as the value of the element to add.
Determines whether the object contains an element with the specified key.
true if the contains an element with the key; otherwise, false.
The key to locate in the object.
Returns an object for the object.
An object for the object.
Gets or sets the element with the specified key.
The element with the specified key.
The key of the element to get or set.
Removes the element with the specified key from the object.
The key of the element to remove.
Returns an enumerator that iterates through a collection.
An object that can be used to iterate through the collection.
Returns the connection string associated with this .
The current property.
1
Retrieves a value corresponding to the supplied key from this .
true if was found within the connection string, false otherwise.
The key of the item to retrieve.
The value corresponding to the .
contains a null value (Nothing in Visual Basic).
1
Gets an that contains the values in the .
An that contains the values in the .
1
Reads a forward-only stream of rows from a data source.
1
Initializes a new instance of the class.
Gets a value indicating the depth of nesting for the current row.
The depth of nesting for the current row.
1
Releases all resources used by the current instance of the class.
1
Releases the managed resources used by the and optionally releases the unmanaged resources.
true to release managed and unmanaged resources; false to release only unmanaged resources.
Gets the number of columns in the current row.
The number of columns in the current row.
There is no current connection to an instance of SQL Server.
1
Gets the value of the specified column as a Boolean.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Gets the value of the specified column as a byte.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Reads a stream of bytes from the specified column, starting at location indicated by , into the buffer, starting at the location indicated by .
The actual number of bytes read.
The zero-based column ordinal.
The index within the row from which to begin the read operation.
The buffer into which to copy the data.
The index with the buffer to which the data will be copied.
The maximum number of characters to read.
The specified cast is not valid.
1
Gets the value of the specified column as a single character.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Reads a stream of characters from the specified column, starting at location indicated by , into the buffer, starting at the location indicated by .
The actual number of characters read.
The zero-based column ordinal.
The index within the row from which to begin the read operation.
The buffer into which to copy the data.
The index with the buffer to which the data will be copied.
The maximum number of characters to read.
1
Returns a object for the requested column ordinal.
A object.
The zero-based column ordinal.
1
Gets name of the data type of the specified column.
A string representing the name of the data type.
The zero-based column ordinal.
The specified cast is not valid.
1
Gets the value of the specified column as a object.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Returns a object for the requested column ordinal that can be overridden with a provider-specific implementation.
A object.
The zero-based column ordinal.
Gets the value of the specified column as a object.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Gets the value of the specified column as a double-precision floating point number.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Returns an that can be used to iterate through the rows in the data reader.
An that can be used to iterate through the rows in the data reader.
1
Gets the data type of the specified column.
The data type of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Synchronously gets the value of the specified column as a type.
The column to be retrieved.
The column to be retrieved.
Synchronously gets the value of the specified column as a type.
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Tried to read a previously-read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
doesn’t match the type returned by SQL Server or cannot be cast.
Asynchronously gets the value of the specified column as a type.
The type of the value to be returned.
The type of the value to be returned.
The type of the value to be returned. See the remarks section for more information.
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Tried to read a previously-read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
doesn’t match the type returned by the data source or cannot be cast.
Asynchronously gets the value of the specified column as a type.
The type of the value to be returned.
The type of the value to be returned.
The cancellation instruction, which propagates a notification that operations should be canceled. This does not guarantee the cancellation. A setting of CancellationToken.None makes this method equivalent to . The returned task must be marked as cancelled.
The type of the value to be returned. See the remarks section for more information.
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Tried to read a previously-read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
doesn’t match the type returned by the data source or cannot be cast.
Gets the value of the specified column as a single-precision floating point number.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
2
Gets the value of the specified column as a globally-unique identifier (GUID).
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Gets the value of the specified column as a 16-bit signed integer.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
2
Gets the value of the specified column as a 32-bit signed integer.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Gets the value of the specified column as a 64-bit signed integer.
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
2
Gets the name of the column, given the zero-based column ordinal.
The name of the specified column.
The zero-based column ordinal.
1
Gets the column ordinal given the name of the column.
The zero-based column ordinal.
The name of the column.
The name specified is not a valid column name.
1
Returns the provider-specific field type of the specified column.
The object that describes the data type of the specified column.
The zero-based column ordinal.
1
Gets the value of the specified column as an instance of .
The value of the specified column.
The zero-based column ordinal.
2
Gets all provider-specific attribute columns in the collection for the current row.
The number of instances of in the array.
An array of into which to copy the attribute columns.
2
Retrieves data as a .
The returned object.
Retrieves data as a .
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Tried to read a previously-read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
The returned type was not one of the types below:binaryimagevarbinaryudt
Gets the value of the specified column as an instance of .
The value of the specified column.
The zero-based column ordinal.
The specified cast is not valid.
1
Retrieves data as a .
The returned object.
Retrieves data as a .
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Tried to read a previously-read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
The returned type was not one of the types below:charncharntextnvarchartextvarchar
Gets the value of the specified column as an instance of .
The value of the specified column.
The zero-based column ordinal.
1
Populates an array of objects with the column values of the current row.
The number of instances of in the array.
An array of into which to copy the attribute columns.
1
Gets a value that indicates whether this contains one or more rows.
true if the contains one or more rows; otherwise false.
1
Gets a value indicating whether the is closed.
true if the is closed; otherwise false.
The is closed.
1
Gets a value that indicates whether the column contains nonexistent or missing values.
true if the specified column is equivalent to ; otherwise false.
The zero-based column ordinal.
1
An asynchronous version of , which gets a value that indicates whether the column contains non-existent or missing values.
true if the specified column value is equivalent to DBNull otherwise false.
The zero-based column to be retrieved.
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Trying to read a previously read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
An asynchronous version of , which gets a value that indicates whether the column contains non-existent or missing values. Optionally, sends a notification that operations should be cancelled.
true if the specified column value is equivalent to DBNull otherwise false.
The zero-based column to be retrieved.
The cancellation instruction, which propagates a notification that operations should be canceled. This does not guarantee the cancellation. A setting of CancellationToken.None makes this method equivalent to . The returned task must be marked as cancelled.
The connection drops or is closed during the data retrieval.The is closed during the data retrieval.There is no data ready to be read (for example, the first hasn't been called, or returned false).Trying to read a previously read column in sequential mode.There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
Trying to read a column that does not exist.
Gets the value of the specified column as an instance of .
The value of the specified column.
The zero-based column ordinal.
The index passed was outside the range of 0 through .
1
Gets the value of the specified column as an instance of .
The value of the specified column.
The name of the column.
No column with the specified name was found.
1
Advances the reader to the next result when reading the results of a batch of statements.
true if there are more result sets; otherwise false.
1
An asynchronous version of , which advances the reader to the next result when reading the results of a batch of statements.Invokes with CancellationToken.None.
A task representing the asynchronous operation.
An error occurred while executing the command text.
This is the asynchronous version of . Providers should override with an appropriate implementation. The may optionally be ignored.The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled . Exceptions thrown by will be communicated via the returned Task Exception property.Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
A task representing the asynchronous operation.
The cancellation instruction.
An error occurred while executing the command text.
Advances the reader to the next record in a result set.
true if there are more rows; otherwise false.
1
An asynchronous version of , which advances the reader to the next record in a result set. This method invokes with CancellationToken.None.
A task representing the asynchronous operation.
An error occurred while executing the command text.
This is the asynchronous version of . Providers should override with an appropriate implementation. The cancellationToken may optionally be ignored.The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by Read will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbDataReader object until the returned Task is complete.
A task representing the asynchronous operation.
The cancellation instruction.
An error occurred while executing the command text.
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected or the statement failed.
1
Gets the number of fields in the that are not hidden.
The number of fields that are not hidden.
1
The base class for all exceptions thrown on behalf of the data source.
2
Initializes a new instance of the class.
Initializes a new instance of the class with the specified error message.
The message to display for this exception.
Initializes a new instance of the class with the specified error message and a reference to the inner exception that is the cause of this exception.
The error message string.
The inner exception reference.
Represents a parameter to a and optionally, its mapping to a column. For more information on parameters, see Configuring Parameters and Parameter Data Types.
1
Initializes a new instance of the class.
Gets or sets the of the parameter.
One of the values. The default is .
The property is not set to a valid .
1
Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
One of the values. The default is Input.
The property is not set to one of the valid values.
1
Gets or sets a value that indicates whether the parameter accepts null values.
true if null values are accepted; otherwise false. The default is false.
1
Gets or sets the name of the .
The name of the . The default is an empty string ("").
1
[Supported in the .NET Framework 4.5.1 and later versions] Gets or sets the maximum number of digits used to represent the property.
The maximum number of digits used to represent the property.
Resets the DbType property to its original settings.
2
[Supported in the .NET Framework 4.5.1 and later versions] Gets or sets the number of decimal places to which is resolved.
The number of decimal places to which is resolved.
Gets or sets the maximum size, in bytes, of the data within the column.
The maximum size, in bytes, of the data within the column. The default value is inferred from the parameter value.
1
Gets or sets the name of the source column mapped to the and used for loading or returning the .
The name of the source column mapped to the . The default is an empty string.
1
Sets or gets a value which indicates whether the source column is nullable. This allows to correctly generate Update statements for nullable columns.
true if the source column is nullable; false if it is not.
1
Gets or sets the value of the parameter.
An that is the value of the parameter. The default value is null.
1
The base class for a collection of parameters relevant to a .
2
Initializes a new instance of the class.
Adds the specified object to the .
The index of the object in the collection.
The of the to add to the collection.
1
Adds an array of items with the specified values to the .
An array of values of type to add to the collection.
2
Removes all values from the .
1
Indicates whether a with the specified is contained in the collection.
true if the is in the collection; otherwise false.
The of the to look for in the collection.
1
Indicates whether a with the specified name exists in the collection.
true if the is in the collection; otherwise false.
The name of the to look for in the collection.
1
Copies an array of items to the collection starting at the specified index.
The array of items to copy to the collection.
The index in the collection to copy the items.
2
Specifies the number of items in the collection.
The number of items in the collection.
1
Exposes the method, which supports a simple iteration over a collection by a .NET Framework data provider.
An that can be used to iterate through the collection.
2
Returns the object at the specified index in the collection.
The object at the specified index in the collection.
The index of the in the collection.
Returns the object with the specified name.
The the object with the specified name.
The name of the in the collection.
Returns the index of the specified object.
The index of the specified object.
The object in the collection.
2
Returns the index of the object with the specified name.
The index of the object with the specified name.
The name of the object in the collection.
2
Inserts the specified index of the object with the specified name into the collection at the specified index.
The index at which to insert the object.
The object to insert into the collection.
1
Gets and sets the at the specified index.
The at the specified index.
The zero-based index of the parameter.
The specified index does not exist.
1
Gets and sets the with the specified name.
The with the specified name.
The name of the parameter.
The specified index does not exist.
1
Removes the specified object from the collection.
The object to remove.
1
Removes the object at the specified from the collection.
The index where the object is located.
2
Removes the object with the specified name from the collection.
The name of the object to remove.
2
Sets the object at the specified index to a new value.
The index where the object is located.
The new value.
Sets the object with the specified name to a new value.
The name of the object in the collection.
The new value.
Specifies the to be used to synchronize access to the collection.
A to be used to synchronize access to the .
2
Gets or sets the element at the specified index.
The element at the specified index.
The zero-based index of the element to get or set.
Represents a set of methods for creating instances of a provider's implementation of the data source classes.
2
Initializes a new instance of a class.
Returns a new instance of the provider's class that implements the class.
A new instance of .
2
Returns a new instance of the provider's class that implements the class.
A new instance of .
2
Returns a new instance of the provider's class that implements the class.
A new instance of .
2
Returns a new instance of the provider's class that implements the class.
A new instance of .
2
The base class for a transaction.
1
Initializes a new object.
Commits the database transaction.
1
Specifies the object associated with the transaction.
The object associated with the transaction.
1
Specifies the object associated with the transaction.
The object associated with the transaction.
Releases the unmanaged resources used by the .
1
Releases the unmanaged resources used by the and optionally releases the managed resources.
If true, this method releases all resources held by any managed objects that this references.
Specifies the for this transaction.
The for this transaction.
1
Rolls back a transaction from a pending state.
1