Enterprise Library Data Access Application Block
7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
|
Class that contains extension methods that apply on Database. More...
Static Public Member Functions | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, IRowMapper< TResult > rowMapper, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . More... | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper, IRowMapper< TResult > rowMapper, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . More... | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, IResultSetMapper< TResult > resultSetMapper, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . More... | |
static IEnumerable< TResult > | ExecuteSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper, IResultSetMapper< TResult > resultSetMapper, params object[] parameterValues) |
Executes a stored procedure and returns the result as an enumerable of TResult . More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName) |
Creates a SprocAccessor<TResult> for the given stored procedure. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper) |
Creates a SprocAccessor<TResult> for the given stored procedure. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName, IRowMapper< TResult > rowMapper) |
Creates a SprocAccessor<TResult> for the given stored procedure. More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper, IRowMapper< TResult > rowMapper) |
Creates a SprocAccessor<TResult> for the given stored procedure. More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName, IResultSetMapper< TResult > resultSetMapper) |
Creates a SprocAccessor<TResult> for the given stored procedure. More... | |
static DataAccessor< TResult > | CreateSprocAccessor< TResult > (this Database database, string procedureName, IParameterMapper parameterMapper, IResultSetMapper< TResult > resultSetMapper) |
Creates a SprocAccessor<TResult> for the given stored procedure. More... | |
static IEnumerable< TResult > | ExecuteSqlStringAccessor< TResult > (this Database database, string sqlString) |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static IEnumerable< TResult > | ExecuteSqlStringAccessor< TResult > (this Database database, string sqlString, IResultSetMapper< TResult > resultSetMapper) |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static IEnumerable< TResult > | ExecuteSqlStringAccessor< TResult > (this Database database, string sqlString, IRowMapper< TResult > rowMapper) |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString, IParameterMapper parameterMapper) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString, IRowMapper< TResult > rowMapper) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString, IResultSetMapper< TResult > resultSetMapper) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString, IParameterMapper parameterMapper, IRowMapper< TResult > rowMapper) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. More... | |
static DataAccessor< TResult > | CreateSqlStringAccessor< TResult > (this Database database, string sqlString, IParameterMapper parameterMapper, IResultSetMapper< TResult > resultSetMapper) |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. More... | |
Class that contains extension methods that apply on Database.
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
TResult | : | new() |
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The type the SprocAccessor<TResult> should return when executing. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
TResult | : | new() |
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure.
TResult | The type the SprocAccessor<TResult> should return when executing. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure.
TResult | The type the SprocAccessor<TResult> should return when executing. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure.
TResult | The type the SprocAccessor<TResult> should return when executing. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
|
static |
Creates a SprocAccessor<TResult> for the given stored procedure.
TResult | The type the SprocAccessor<TResult> should return when executing. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that should be executed by the SprocAccessor<TResult>. |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
TResult | : | new() |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query. The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
TResult | : | new() |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
|
static |
Creates a SqlStringAccessor<TResult> for the given Transact-SQL query.
TResult | The type the SprocAccessor<TResult> should return when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed by the SqlStringAccessor<TResult>. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult .
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
parameterValues | Parameter values passed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult .
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
parameterValues | Parameter values passed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
parameterMapper | The IParameterMapper that will be used to interpret the parameters passed to the Execute method. |
parameterValues | Parameter values passsed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult .
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
parameterValues | Parameter values passed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult .
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |
parameterValues | Parameter values passed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a stored procedure and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
procedureName | The name of the stored procedure that will be executed. |
parameterValues | Parameter values passsed to the stored procedure. |
TResult | : | new() |
|
static |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed. |
TResult | : | new() |
|
static |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
resultSetMapper | The IResultSetMapper<TResult> that will be used to convert the returned set to an enumerable of clr type TResult . |
sqlString | The Transact-SQL query that will be executed. |
|
static |
Executes a Transact-SQL query and returns the result as an enumerable of TResult . The conversion from IDataRecord to TResult will be done for each property based on matching property name to column name.
TResult | The element type that will be returned when executing. |
database | The Database that contains the stored procedure. |
sqlString | The Transact-SQL query that will be executed. |
rowMapper | The IRowMapper<TResult> that will be used to convert the returned data to clr type TResult . |