API
EF Core EnsureCreated
Initializes a schema for an empty disposable database; not a migrations workflow.
Formal Syntax & Structure
csharp syntaxcsharp
ctx.Database.EnsureCreated()Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.ctx.Database.EnsureCreated()