Search code examples
c#entity-frameworkentitydiagramedmx

Entity Framework classes to diagram


I have a bunch of classes with navigation properties and foreign keys. How can I visualise the relationships between these classes.


Solution

  • If you use Entity Framework 6, you can use the "EF Power Tools" to create a EDMX diagram from your DbContext.

    If you use VS, you can use "Class Diagram"

    If you use EF Core, you can use EF Core Power Tools to create a diagram of your DbContext