EntityFrameworkCore.Diagrams NuGet Package

Visualize model created with EntityFramework Core in ASP.NET Core app.

https://db-diagrams.firebaseapp.com/

1.

Install the NuGet package
2. Use AddEfDiagrams() extension method in Configure() method of your Startup class to add middleware. Specify your DbContext type instead of ApplicationDbContext in the following example: app.AddEfDiagrams<ApplicationDbContext>();
3. Start your app and browse to /db-diagrams page.

You should see the diagram now.

Use the middleware is only in Development mode. This is important! Otherwise, any user in Production will se your model structure, which may not be desireable. This is not the case if you are developing public API, though.

Feel free to report any bugs or feature requests - just create an issue. Contributions are appreciated!
https://github.com/EvAlex/ef-db-diagrams.




Got any EntityFrameworkCore.Diagrams Question?





Info

Version: 0.4.2
Author(s): Alexander Pavlyuk (EvAlex)
Last Update: Wednesday, August 9, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://db-diagrams.firebaseapp.com/
NuGet Url: https://www.nuget.org/packages/EntityFrameworkCore.Diagrams


Install
Install-Package EntityFrameworkCore.Diagrams
dotnet add package EntityFrameworkCore.Diagrams
paket add EntityFrameworkCore.Diagrams
EntityFrameworkCore.Diagrams Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

2.4

avg-downloads-per-day

6

days-since-last-release

2661