Skip to content
Sample of how to work with edmx (EF6 metadata) files without designer support on .NET Core projects
C#
Branch: master
Clone or download
Pull request Compare This branch is even with divega:master.
Diego Vega
Diego Vega Update README.md
Latest commit 179e802 Aug 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
EdmxDesignHost Update Aug 22, 2019
EdmxDotNetCoreSample Tweaks Aug 22, 2019
.gitattributes Add .gitignore and .gitattributes. Aug 22, 2019
.gitignore Initial commit Aug 22, 2019
EdmxDotNetCoreApp.sln Update Aug 22, 2019
README.md Update README.md Aug 22, 2019

README.md

Edmx .NET Core Sample

This sample shows a way to work with edmx (EF6 metadata) in a .NET Core project in Visual Studio without designer support.

It uses a .NET Framework project to host the edmx file, which is supported by the designer, and then imports the edmx file and the relevant generated entity and DbContext classes as linked files in the .NET Core project.

That way you can use the designer to visualize and modify the model using the designer, getting any changes automatically impact the generated code using the regular T4 templates, and then use the results from a .NET Core application.

You will need to add new linked files for any new entity classes you add or rename in the designer.

You can’t perform that action at this time.