Share via


Database 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 an abstract database that commands can be run against.

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

Syntax

'Declaration
<ConfigurationNameMapperAttribute(GetType(DatabaseMapper))> _
<CustomFactoryAttribute(GetType(DatabaseCustomFactory))> _
PublicMustInheritClassDatabase _
    Implements IInstrumentationEventProvider
[ConfigurationNameMapperAttribute(typeof(DatabaseMapper))]
[CustomFactoryAttribute(typeof(DatabaseCustomFactory))]
publicabstractclassDatabase : IInstrumentationEventProvider
[ConfigurationNameMapperAttribute(typeof(DatabaseMapper))]
[CustomFactoryAttribute(typeof(DatabaseCustomFactory))]
publicref classDatabaseabstract : IInstrumentationEventProvider
publicabstractclass Database implements IInstrumentationEventProvider

Remarks

The Database class leverages the provider factory model from ADO.NET. A database instance holds a reference to a concrete DbProviderFactory object to which it forwards the creation of ADO.NET objects.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Data.Database
    Microsoft.Practices.EnterpriseLibrary.Data.GenericDatabase
    Microsoft.Practices.EnterpriseLibrary.Data.Oracle.OracleDatabase
    Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase

See Also

Database Members

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.