Share via


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

public Database Database { get; }

Property Value

Type: System.Data.Entity.Database

See Also

Reference

DbContext Class

System.Data.Entity Namespace