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.
Microsoft.Practices.EnterpriseLibrary.Data Namespace Reference

Classes

class  CachingMechanism
 CachingMechanism provides caching support for stored procedure parameter discovery and caching
 
class  CommandAccessor
 Base class for Data Accessors that execute a DbCommand. More...
 
class  ConnectionString
 ConnectionString class constructs a connection string by inserting a username and password into a template. More...
 
class  DaabAsyncResult
 This class represents an asynchronous operation invoked from the Database class methods. More...
 
class  DataAccessor
 An abstract class 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<TResult> of whatever type TResult is. More...
 
class  Database
 Represents an abstract database that commands can be run against. More...
 
class  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. More...
 
class  DatabaseExtensions
 Class that contains extension methods that apply on Database. More...
 
class  DatabaseFactory
 Contains factory methods for creating Database objects. More...
 
class  DatabaseProviderFactory
 
class  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. More...
 
class  GenericDatabase
 The GenericDatabase is used when no specific behavior is required or known for a database. More...
 
interface  IParameterMapper
 Interface used to interpret parameters passed to an DataAccessor<TResult>.Execute(object[]) method and assign them to the DbCommand that will be executed. More...
 
interface  IResultSetMapper
 Represents the operation of mapping a IDataReader to an enumerable of TResult . More...
 
interface  IRowMapper
 Represents the operation of mapping a IDataRecord to TResult . More...
 
class  MapBuilder
 Static entry point for the IMapBuilderContext<TResult> interface, which allows to build reflection-based IRowMapper<TResult>s. More...
 
interface  IMapBuilderContext
 A fluent interface that can be used to construct a IRowMapper<TResult>. More...
 
interface  IMapBuilderContextMap
 A fluent interface that can be used to construct a IRowMapper<TResult>. More...
 
interface  IMapBuilderContextTest
 This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code. More...
 
class  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. More...
 
class  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. More...
 
class  ReflectionRowMapper
 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. More...
 
class  PropertyMapping
 Base class for mapping values to properties by the ReflectionRowMapper<TResult>. More...
 
class  ColumnNameMapping
 Represents the mapping from a database column to a PropertyInfo. More...
 
class  FuncMapping
 Represents a property that will be assigned the value of a user specified function when mapping. More...
 
class  SprocAccessor
 Represents a stored procedure call to the database that will return an enumerable of TResult . More...
 
class  SqlStringAccessor
 Represents a call to the database using SQL that will return an enumerable of TResult . More...
 
class  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. More...
 

Enumerations

enum class  UpdateBehavior { Standard , Continue , Transactional }
 Used with the Database.UpdateDataSet method. Provides control over behavior when the Data Adapter's update command encounters an error. More...
 

Enumeration Type Documentation

◆ UpdateBehavior

Used with the Database.UpdateDataSet method. Provides control over behavior when the Data Adapter's update command encounters an error.

Enumerator
Standard 

No interference with the DataAdapter's Update command. If Update encounters an error, the update stops. Additional rows in the Datatable are unaffected.

Continue 

If the DataAdapter's Update command encounters an error, the update will continue. The Update command will try to update the remaining rows.

Transactional 

If the DataAdapter encounters an error, all updated rows will be rolled back.