dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / Database Property

In This Topic
    Database Property (PgSqlConnection)
    In This Topic
    Gets or sets the name of the database to be used once a connection is open.
    Syntax
    'Declaration
     
    Public Shadows Property Database As String
    public new string Database {get; set;}

    Property Value

    The name of the database to be used once a connection is open. The default value is an empty string ("").
    Remarks

    When a value is assigned to this property, the PgSqlConnection is closed and reopened.

    If the database parameter is not specified in the ConnectionString, it is assumed that name of the database is same as user name.

    See Also