The AdoHelper<(Of <(<'TFactory>)>)> type exposes the following members.

Constructors

  NameDescription
Public methodAdoHelper<(Of <(<'TFactory>)>)>
Initializes a new instance of the AdoHelper<(Of <(<'TFactory>)>)> class

Methods

  NameDescription
Protected methodAddUpdateEventHandlers
Provider specific code to set up the updating/ed event handlers used by UpdateDataset
Protected methodAssignParameterValues(array<IDataParameter>[]()[][], DataRow)
This method assigns dataRow column values to an array of IDataParameters
Protected methodAssignParameterValues(array<IDataParameter>[]()[][], array<Object>[]()[][])
This method assigns an array of values to an array of IDataParameters
Protected methodAssignParameterValues(IDataParameterCollection, DataRow)
This method assigns dataRow column values to an IDataParameterCollection
Protected methodAttachParameters
This method is used to attach array of IDataParameters to an IDbCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value.
Public methodCacheParameterSet(IDbConnection, String, array<IDataParameter>[]()[][])
Add parameter array to the cache
Public methodCacheParameterSet(String, String, array<IDataParameter>[]()[][])
Add parameter array to the cache
Public methodCleanParameterSyntax
This method cleans up the parameter syntax for the provider
Protected methodClearCommand
This method clears (if necessary) the connection, transaction, command type and parameters from the provided command
Public methodCreateCommand(IDbConnection, String, array<String>[]()[][])
Simplify the creation of an IDbCommand object by allowing a stored procedure and optional parameters to be provided
Public methodCreateCommand(String, String, array<String>[]()[][])
Simplify the creation of an IDbCommand object by allowing a stored procedure and optional parameters to be provided
Public methodCreateCommand(IDbConnection, String, CommandType, array<IDataParameter>[]()[][])
Simplify the creation of an IDbCommand object by allowing a stored procedure and optional parameters to be provided
Public methodCreateCommand(String, String, CommandType, array<IDataParameter>[]()[][])
Simplify the creation of an IDbCommand object by allowing a stored procedure and optional parameters to be provided
Public methodDeriveParameters
Calls the CommandBuilder.DeriveParameters method for the specified provider, doing any setup and cleanup necessary
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteDataset(IDbCommand)
Execute an IDbCommand (that returns a resultset) against the database specified in the connection String.
Public methodExecuteDataset(IDbConnection, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbConnection.
Public methodExecuteDataset(IDbConnection, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteDataset(IDbTransaction, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbTransaction.
Public methodExecuteDataset(IDbTransaction, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteDataset(String, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the database specified in the connection String.
Public methodExecuteDataset(String, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteDataset(IDbConnection, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameters.
Public methodExecuteDataset(IDbTransaction, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameters.
Public methodExecuteDataset(String, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameters.
Public methodExecuteDatasetTypedParams(IDbCommand, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will assign the paraemter values based on row values.
Public methodExecuteDatasetTypedParams(IDbConnection, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection using the dataRow column values as the store procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteDatasetTypedParams(IDbTransaction, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteDatasetTypedParams(String, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteNonQuery(IDbCommand)
Execute an IDbCommand (that returns no resultset) against the database
Public methodExecuteNonQuery(IDbConnection, CommandType, String)
Execute an IDbCommand (that returns no resultset and takes no parameters) against the provided IDbConnection.
Public methodExecuteNonQuery(IDbConnection, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns no resultset) against the specified IDbConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteNonQuery(IDbTransaction, CommandType, String)
Execute an IDbCommand (that returns no resultset and takes no parameters) against the provided IDbTransaction.
Public methodExecuteNonQuery(IDbTransaction, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns no resultset) against the specified IDbTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteNonQuery(String, CommandType, String)
Execute an IDbCommand (that returns no resultset and takes no parameters) against the database specified in the connection string
Public methodExecuteNonQuery(String, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns no resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteNonQuery(IDbConnection, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns no resultset) against the specified IDbConnection using the provided parameters.
Public methodExecuteNonQuery(IDbTransaction, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns no resultset) against the specified IDbTransaction using the provided parameters.
Public methodExecuteNonQuery(String, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns no resultset) against the database specified in the connection string using the provided parameters
Public methodExecuteNonQueryTypedParams(IDbCommand, DataRow)
Execute a stored procedure via an IDbCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will assign the parameter values based on row values.
Public methodExecuteNonQueryTypedParams(IDbConnection, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns no resultset) against the specified IDbConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteNonQueryTypedParams(IDbTransaction, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns no resultset) against the specified IDbTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteNonQueryTypedParams(String, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.
Public methodExecuteReader(IDbCommand)
Execute an IDbCommand (that returns a resultset) against the database specified in the connection String.
Protected methodExecuteReader(IDbCommand, AdoHelper<(Of <<'(TFactory>)>>)..::..AdoConnectionOwnership)
Execute an IDbCommand (that returns a resultset) against the database specified in the connection String.
Public methodExecuteReader(IDbConnection, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbConnection.
Public methodExecuteReader(IDbConnection, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteReader(IDbTransaction, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbTransaction.
Public methodExecuteReader(IDbTransaction, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteReader(String, CommandType, String)
Execute an IDbCommand (that returns a resultset and takes no parameters) against the database specified in the connection String.
Public methodExecuteReader(String, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteReader(IDbConnection, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameters.
Public methodExecuteReader(IDbTransaction, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameters.
Public methodExecuteReader(String, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameters.
Public methodExecuteReaderTypedParams(IDbCommand, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will assign the parameter values based on parameter order.
Public methodExecuteReaderTypedParams(IDbConnection, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteReaderTypedParams(IDbTransaction, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteReaderTypedParams(String, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalar(IDbCommand)
Execute an IDbCommand (that returns a 1x1 resultset) against the database specified in the connection String.
Public methodExecuteScalar(IDbConnection, CommandType, String)
Execute an IDbCommand (that returns a 1x1 resultset and takes no parameters) against the provided IDbConnection.
Public methodExecuteScalar(IDbConnection, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the specified IDbConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalar(IDbTransaction, CommandType, String)
Execute an IDbCommand (that returns a 1x1 resultset and takes no parameters) against the provided IDbTransaction.
Public methodExecuteScalar(IDbTransaction, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the specified IDbTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalar(String, CommandType, String)
Execute an IDbCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection String.
Public methodExecuteScalar(String, String, array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalar(IDbConnection, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a 1x1 resultset) against the specified IDbConnection using the provided parameters.
Public methodExecuteScalar(IDbTransaction, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a 1x1 resultset) against the specified IDbTransaction using the provided parameters.
Public methodExecuteScalar(String, CommandType, String, array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters.
Public methodExecuteScalarTypedParams(IDbCommand, DataRow)
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will assign the parameter values based on parameter order.
Public methodExecuteScalarTypedParams(IDbConnection, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the specified IDbConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalarTypedParams(IDbTransaction, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the specified IDbTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodExecuteScalarTypedParams(String, String, DataRow)
Execute a stored procedure via an IDbCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodFillDataset(IDbCommand, DataSet, array<String>[]()[][])
Execute an IDbCommand (that returns a resultset) against the database specified in the connection String.
Public methodFillDataset(IDbConnection, CommandType, String, DataSet, array<String>[]()[][])
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbConnection.
Public methodFillDataset(IDbConnection, String, DataSet, array<String>[]()[][], array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodFillDataset(IDbTransaction, CommandType, String, DataSet, array<String>[]()[][])
Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbTransaction.
Public methodFillDataset(IDbTransaction, String, DataSet, array<String>[]()[][], array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodFillDataset(String, CommandType, String, DataSet, array<String>[]()[][])
Execute an IDbCommand (that returns a resultset and takes no parameters) against the database specified in the connection String.
Public methodFillDataset(String, String, DataSet, array<String>[]()[][], array<Object>[]()[][])
Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public methodFillDataset(IDbConnection, CommandType, String, DataSet, array<String>[]()[][], array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbConnection using the provided parameters.
Public methodFillDataset(IDbTransaction, CommandType, String, DataSet, array<String>[]()[][], array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the specified IDbTransaction using the provided parameters.
Public methodFillDataset(String, CommandType, String, DataSet, array<String>[]()[][], array<IDataParameter>[]()[][])
Execute an IDbCommand (that returns a resultset) against the database specified in the connection string using the provided parameters.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetBlobParameter
Handle any provider-specific issues with BLOBs here by "washing" the IDataParameter and returning a new one that is set up appropriately for the provider.
Public methodGetCachedParameterSet(IDbConnection, String)
Retrieve a parameter array from the cache
Public methodGetCachedParameterSet(String, String)
Retrieve a parameter array from the cache
Public methodGetConnection
Returns an IDbConnection object for the given connection string
Public methodGetDataAdapter
Returns an IDbDataAdapter object
Protected methodGetDataParameters
Returns an array of IDataParameters of the specified size
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetParameter()()()()
Returns an IDataParameter object
Public methodGetParameter(String, Object)
Get an IDataParameter for use in a SQL command
Public methodGetParameter(String, DbType, Int32, ParameterDirection)
Get an IDataParameter for use in a SQL command
Public methodGetParameter(String, DbType, Int32, String, DataRowVersion)
Get an IDataParameter for use in a SQL command
Public methodGetSpParameterSet(IDbConnection, String)
Retrieves the set of IDataParameters appropriate for the stored procedure
Public methodGetSpParameterSet(String, String)
Retrieves the set of IDataParameters appropriate for the stored procedure
Public methodGetSpParameterSet(IDbConnection, String, Boolean)
Retrieves the set of IDataParameters appropriate for the stored procedure
Public methodGetSpParameterSet(String, String, Boolean)
Retrieves the set of IDataParameters appropriate for the stored procedure
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPrepareCommand
This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command
Protected methodRowUpdated
This method consumes the RowUpdatedEvent and passes it on to the consumer specifed in the call to UpdateDataset
Protected methodRowUpdating
This method consumes the RowUpdatingEvent and passes it on to the consumer specifed in the call to UpdateDataset
Protected methodSetCommand
Set up a command for updating a DataSet.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateDataset(IDbCommand, IDbCommand, IDbCommand, DataSet, String)
Executes the respective command for each inserted, updated, or deleted row in the DataSet.
Public methodUpdateDataset(IDbCommand, IDbCommand, IDbCommand, DataSet, String, AdoHelper<(Of <<'(TFactory>)>>)..::..RowUpdatingHandler, AdoHelper<(Of <<'(TFactory>)>>)..::..RowUpdatedHandler)
Executes the IDbCommand for each inserted, updated, or deleted row in the DataSet also implementing RowUpdating and RowUpdated Event Handlers

Fields

  NameDescription
Protected fieldm_rowUpdated
Internal handler used for bubbling up the event to the user
Protected fieldm_rowUpdating
Internal handler used for bubbling up the event to the user

See Also