EntityConnection.Database Property

Definition

Gets the name of the current database, or the database that will be used after a connection is opened.

C#
public override string Database { get; }

Property Value

The value of the Database property of the underlying data provider.

Exceptions

The underlying data provider is not known.

Remarks

For the specific keyword value, such as Database, that maps to the Database property, see the documentation for the underlying data provider. For SQL Server equivalent keywords, see the documentation for the SqlConnection.ConnectionString property.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1