DbContext.Database Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Creates a Database instance for this context that allows for creation/deletion/existence checks for the underlying database.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public ReadOnly Property Database As Database 
    Get
'Usage
Dim instance As DbContext 
Dim value As Database 

value = instance.Database
public Database Database { get; }
public:
property Database^ Database {
    Database^ get ();
}
member Database : Database
function get Database () : Database

Property Value

Type: System.Data.Entity.Database

See Also

Reference

DbContext Class

System.Data.Entity Namespace