Property Navigation

Marnelle M'BENGUET 20 Reputation points
2023-08-24T11:34:44.9233333+00:00

hello I am a beginner in Entity framework core I did database first and from my models I generated the controllers and as I had migrations of the keys in certain tables, the scaffold added me propertyNavigation that I have a little trouble adapting with my model and my context file here are some screenshots of my code

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
741 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,915 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
335 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sanjar Akhmedov 0 Reputation points
    2023-08-24T12:05:08.73+00:00

    Since you mentioned screenshots, unfortunately, I can't directly view images or screenshots. However, you can describe the issues you're facing, and I'll do my best to assist you based on the information you provide.

    If you're having trouble adapting the navigation properties generated by scaffolding, please provide more details about the specific problems you're encountering. For example, you could describe the generated models, the navigation properties causing issues, and the issues themselves. This will help me understand the situation better and provide you with more accurate guidance.

    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.