Please be aware that this document is currently being updated for v3.0. Information here is a mix between 3.0 features and the older 2.x version.
Updates are in progress and, when done, this message will be removed.

This Visual Studio 2019 IDE extension adds a new file type (.efmodel) that allows for visual design of persistent classes. Inheritance, unidirectional and bidirectional associations are all supported. Enumerations are also included in the visual model, as is the ability to add text blocks to explain potentially arcane parts of your design.

T4 files are used to generate code-first DBContext and POCO class files for both EF6 and EFCore, and these can be modified to generate your own particular style.

If you are used to the Entity Framework visual modeling that came with prior versions of Visual Studio, you’ll be pretty much at home. The goal was to duplicate at least those features and, in addition, all the things that should have been there. Things like

You should think of this extension as two parts: first the design surface and, separately, the T4 templates that generate the code. The template(s) can be changed without modifying, compiling and reinstalling the extension - it’s designed this way so that developers can easily make whatever changes suit their fancy to how the code is generated, since everybody’s got their own personal quirks on how their code should look.

Next Step

Getting Started