How to generate class diagram from models in EF Core?
<p>We are building an application using ASP.NET MVC Core and Entity Framework Core and we have the whole bunch of classes in our application. In previous versions of Entity Framework, we would use this method for generating an edmx file for class diagram:</p>

<pre><code>void ExportMappings(DbContext context, string edmxFile)
{
     var settings = new XmlWriterSettings { Indent = true };
     using (XmlWriter writer = XmlWriter.Create(edmxFile, settings))
     {
         System.Data.Entity.Infrastructure.EdmxWriter.WriteEdmx(context, writer);
     }
}
</code></pre>

<p>but it seems that there's no such feature in EF Core. I wonder if there's an equivalent version for doing this in Entity Framework Core.</p>