Microsoft.Practices.EnterpriseLibrary.Data Namespace
Classes
Class | Description | |
---|---|---|
ColumnNameMapping |
Represents the mapping from a database column to a PropertyInfo.
|
|
CommandAccessor<TResult> |
Base class for Data Accessors that execute a DbCommand.
|
|
ConnectionString |
ConnectionString class constructs a connection string by inserting a username and password into a template.
|
|
DaabAsyncResult |
This class represents an asynchronous operation invoked from the Database class methods.
|
|
DataAccessor<TResult> |
An interface representing an object that wraps a database operation. An Accessor is executed, at which point it will go out to the database and return a IEnumerable<T> of whatever type is.
|
|
Database |
Represents an abstract database that commands can be run against.
|
|
Database.OldConnectionWrapper |
This is a helper class that is used to manage the lifetime of a connection for various Execute methods. We needed this class to support implicit transactions created with the TransactionScope class. In this case, the various Execute methods need to use a shared connection instead of a new connection for each request in order to prevent a distributed transaction.
|
|
DatabaseConnectionWrapper |
This is a small helper class used to manage closing a connection in the presence of transaction pooling. We can't actually close the connection until everyone using it is done, thus, we need reference counting.
|
|
DatabaseExtensions |
Class that contains extension methods that apply on Database.
|
|
DatabaseFactory |
Contains factory methods for creating Database objects.
|
|
DatabaseProviderFactory | Represents a factory for creating named instances of Database objects. |
|
DataReaderWrapper |
Wrapper class that implements a pass through version of IDataReader. Useful for various places where we need to wrap data readers for connection management.
|
|
FuncMapping |
Represents a property that will be assigned the value of a user specified function when mapping.
|
|
GenericDatabase |
The GenericDatabase is used when no specific behavior is required or known for a database.
|
|
MapBuilder<TResult> |
Static entry point for the IMapBuilderContext<TResult> interface, which allows to build reflection-based IRowMapper<TResult>s.
|
|
ParameterCache | Provides parameter caching services for dynamic parameter discovery of stored procedures. Eliminates the round-trip to the database to derive the parameters and types when a command is executed more than once. |
|
PropertyMapping |
Base class for mapping values to properties by the ReflectionRowMapper<TResult>.
|
|
RefCountingDataReader |
An implementation of IDataReader which also properly cleans up the reference count on the given inner DatabaseConnectionWrapper when the reader is closed or disposed.
|
|
ReflectionRowMapper<TResult> |
An implementation of IRowMapper<TResult> that uses reflection to convert data rows to TResult. Instances of this class can be build using the MapBuilder<TResult> API.
|
|
SprocAccessor<TResult> |
Represents a stored procedure call to the database that will return an enumerable of TResult.
|
|
SqlStringAccessor<TResult> |
Represents a call to the database using SQL that will return an enumerable of TResult.
|
|
TransactionScopeConnections |
This class manages the connections that will be used when transactions are active as a result of instantiating a TransactionScope. When a transaction is active, all database access must be through this single connection unless you want to use a distributed transaction, which is an expensive operation.
|
Interfaces
Interface | Description | |
---|---|---|
IMapBuilderContext<TResult> |
A fluent interface that can be used to construct a IRowMapper<TResult>.
|
|
IMapBuilderContextMap<TResult, TMember> |
A fluent interface that can be used to construct a IRowMapper<TResult>.
|
|
IMapBuilderContextTest<TResult> |
This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code.
|
|
IParameterMapper |
Interface used to interpret parameters passed to an Execute(array<Object[]) method and assign them to the DbCommand that will be executed.
|
|
IResultSetMapper<TResult> |
Represents the operation of mapping a IDataReader to an enumerable of TResult.
|
|
IRowMapper<TResult> |
Represents the operation of mapping a IDataRecord to TResult.
|
Enumerations
Enumeration | Description | |
---|---|---|
UpdateBehavior |
Used with the Database.UpdateDataSet method. Provides control over behavior when the Data Adapter's update command encounters an error.
|