ADO.Net Entity Data Model

Amit Patel 126 Reputation points
2021-04-20T04:05:49.657+00:00

When I try to add the ADO.Net Entity Data Model into my project, I am getting the following message -

"The Project's target framework does not contain Entity Framework runtime assemblies. Please review the target's framework information in the project's property page."

I tried checking the properties of the Project, but could not found the framework information.

Developer technologies | .NET | Other
{count} votes

Accepted answer
  1. Amit Patel 126 Reputation points
    2021-04-26T14:35:35.627+00:00

    @Daniel Zhang-MSFT
    I installed the Framework 4.8, which helped to solve my problem.

    Thank you for your help.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,651 Reputation points
    2021-04-21T01:39:18.707+00:00

    Hi AmitPatel-5670,
    As DuaneArnold-0443 said that EF Core does not support the EDMX file format for models.
    And the best option to port these models, is to generate a new code-based model from the database for your application.
    More details please refer to this document.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.