Partager via


DbProviderMapping Class

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.

Represents the mapping from an ADO.NET provider to an Enterprise Library Database.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data.Configuration
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
PublicClassDbProviderMapping _
    Inherits NamedConfigurationElement
publicclassDbProviderMapping : NamedConfigurationElement
publicref classDbProviderMapping : public NamedConfigurationElement
publicclass DbProviderMapping extends NamedConfigurationElement

Remarks

The Enterprise Library Data Access Application Block leverages the ADO.NET 2.0 provider factories. To determine what type of Database matches a given provider factory type, the optional DbProviderMapping configuration objects can be defined in the block's configuration section.

If a mapping is not present for a given provider type, sensible defaults will be used:

Inheritance Hierarchy

System.Object
  System.Configuration.ConfigurationElement
    Microsoft.Practices.EnterpriseLibrary.Common.Configuration.NamedConfigurationElement
      Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping

See Also

DbProviderMapping Members

Microsoft.Practices.EnterpriseLibrary.Data.Configuration Namespace

DatabaseConfigurationView.GetProviderMapping(String, String)

System.Data.Common.DbProviderFactory

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.