1

I have .Net Core 5.0 API project contains another .Net Core Class Library.

Also I have exiting SQl Server Database.

How can create edmx using .net core project with my exiting databse?

C# and VS2019

2 Answers 2

2

EF Core do not support edmx. It uses attributes and Fluent API for defining schema and mapping.

Check this link how to work with existing database with EF Core.

https://learn.microsoft.com/en-us/ef/efcore-and-ef6/porting/port-edmx

Sign up to request clarification or add additional context in comments.

Comments

0

You cannot create an EDMX file in .NET core but you can use an existing edmx file in .NET core project. I documented the procedure here and a code sample on github. You can even generate more than entities, including an entire API

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.