EntityFrameworkCore.Diagrams 0.4.2

.NET Standard 1.6
Install-Package EntityFrameworkCore.Diagrams -Version 0.4.2
dotnet add package EntityFrameworkCore.Diagrams --version 0.4.2
<PackageReference Include="EntityFrameworkCore.Diagrams" Version="0.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.Diagrams --version 0.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EntityFrameworkCore.Diagrams, 0.4.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityFrameworkCore.Diagrams as a Cake Addin
#addin nuget:?package=EntityFrameworkCore.Diagrams&version=0.4.2

// Install EntityFrameworkCore.Diagrams as a Cake Tool
#tool nuget:?package=EntityFrameworkCore.Diagrams&version=0.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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


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!

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.2 11,237 8/9/2017
0.4.1 879 7/29/2017
0.4.0 830 7/28/2017
0.3.3 875 7/28/2017
0.3.1 874 7/28/2017
0.3.0 851 7/27/2017
0.2.5 824 7/26/2017
0.2.4 820 7/26/2017
0.2.3 821 7/26/2017
0.2.2 873 7/25/2017
0.2.1 1,008 7/25/2017
0.2.0 817 7/25/2017
0.1.6 829 7/25/2017
0.1.5 857 7/21/2017
0.1.4 861 7/21/2017
0.1.3 873 7/20/2017

- fix: misplaced relation connectors