dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

Add more context create/drop database examples #1491

Open jgrandydev opened 5 years ago

jgrandydev commented 5 years ago

This is poorly written documentation. The variable dbContext is used out of context - missing the code that declares and initializes it.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

tdsalty commented 4 years ago

Please explain WHERE to use EnsureDeleted and EnsureCreated, the examples are way too thin.