Partager via


Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Classes

  Class Description
Public class ConnectionString
ConnectionString class constructs a connection string by inserting a username and password into a template.
Public class Database
Represents an abstract database that commands can be run against.
Protected class Database.ConnectionWrapper
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.
Public class DatabaseConfigurationView

Represents a view for navigating the DatabaseSettings configuration data.

Public class DatabaseCustomFactory
This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Represents the process to build a Database described by configuration information.
Public class DatabaseFactory
Contains factory methods for creating Database objects.
Public class DatabaseMapper
This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Resolves default names for databases.
Public class DatabaseProviderFactory

Represents a factory for creating named instances of Database objects.

Public class GenericDatabase
The GenericDatabase is used when no specific behavior is required or known for a database.
Public 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.

Enumerations

  Enumeration Description
Public enumeration UpdateBehavior
Used with the Database.UpdateDataSet method. Provides control over behavior when the Data Adapter's update command encounters an error.
Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.