Uređivanje

Dijeli putem


DbConnection.Database Property

Definition

When overridden in a derived class, gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened.

public:
 abstract property System::String ^ Database { System::String ^ get(); };
public abstract string Database { get; }
member this.Database : string
Public MustOverride ReadOnly Property Database As String

Property Value

The name of the current database or the name of the database to be used after a connection is opened. The default value is an empty string.

Implements

Remarks

A connection typically updates this property dynamically when the current database changes.

Applies to

See also