This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public abstract class Database
Visual Basic (Declaration) Copy imageCopy Code
                                  Public MustInherit Class Database

The type exposes the following properties.

Public Properties

  Name Description
Public property Static member ApplicationName
Gets or sets the application name that is reported on the database connection. (Visible in Sql Traces).
Public property ConnectionString
Returns the connection string.
Public property Static member Current
Returns the default database of the current user.
Public property Id
Returns the Id of this database
Public property IsCmsDatabase
Gets if this database is a CMS database. Once set to true, isCmsDatabase can never be set to false again.
Public property Meta
Returns meta information about this database.
Public property ProviderName
Gets the provider invariant name.
Public property ServerType
Returns the database server type.
Public property ServerVersion
Gets the dbms version.
Public property TableCache
Returns the TableCacheManager for this Database.

Protected Properties

  Name Description
Protected property CustomVwSchemaProcedureParameters
Returns the sql query that retrieves data normally returned by VwSchemaProcedureParameters. This sql query is used for non-Cms databases when vwSchemaTables does not exist.
Protected property CustomVwSchemaProcedures
Returns the sql query that retrieves data normally returned by vwSchemaTables. This sql query is used for non-Cms databases when vwSchemaTables does not exist.
Protected property CustomVwSchemaTables
Returns the sql query that retrieves data normally returned by vwSchemaTables. This sql query is used for non-Cms databases when vwSchemaTables does not exist.
Protected property Factory
Gets the factory for this database.
Protected property ParsedConnectionString
Gets the parsed connection string.

See Also

Advanced