Learn Entity Framework Core: https://www.learnentityframeworkcore.com/
Entity Framework Core Tutorial: https://entityframeworkcore.com/
Entity Framework 6 Tutorial: https://entityframework.net/
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)
Dependencies
- Microsoft.Extensions.FileProviders.Physical(>= 1.1.1)
- Microsoft.EntityFrameworkCore(>= 1.1.2)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 1.1.1)
- NETStandard.Library(>= 1.6.1)
- Microsoft.AspNetCore.Http.Abstractions(>= 1.1.2)
- Microsoft.AspNetCore.StaticFiles(>= 1.1.1)
- Newtonsoft.Json(>= 10.0.3)
Tags
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.