Export (0) Print
Expand All

DatabaseFactoryCreateDatabase Method

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.

Method for invoking a default Database object. Reads default settings from the ConnectionSettings.config file.

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

public static Database CreateDatabase()

Return Value

Database


            Database dbSvc = DatabaseFactory.CreateDatabase();
            

ExceptionCondition
System.ConfigurationConfigurationException

An error occured while reading the configuration.

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.

Show:
© 2014 Microsoft