POST Method is not working with "Navigation" attributes

iscott16 1 Reputation point
2022-10-10T04:04:38.753+00:00

Hello,

I'm trying to POST data to a table. Each time I try with the Swagger app I received an error that mentioned that "entityNavigation" attribute is null. But that attribute was automatically generated by Scaffolding (it does not exist on the database schema) and if I try to delete it, there are more errors. It seems that "entityNavigation" is for all entities that have Foreign Keys implemented. So... how can I insert data into a table that asks for "entityNavigation"?

Thanks in advance.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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.
293 questions
{count} votes