C# API - Update

Asked

Viewed 51 times

1

I created an API using Entity Framework, the connection is ok, however, when I update the data in the database, qlqr one of the fields, Json in the API does not show the change.

How to resolve this type of update?

  • missing information to solve your problem, post the code you are using to receive from the bank, maybe the problem is there

  • The thing is, I created everything in the controller, in automatic mode.

1 answer

1


Check if the object you return to API is the same as the one you updated.

If you are retrieving the database object after the update, try using Asnotracking in the query to not ask for information that is cached.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.