API C # - Update

1

I created an API using entity framework, the connection is ok, but when I update the data in the database, qlqr one of the fields, the Json in the API does not change.

How to resolve this type of update?

    
asked by anonymous 16.05.2017 / 20:50

1 answer

1

Verify that the object you return to API is the same one you upgraded.

If you are recovering the object from the database after the upgrade, try to use AsNoTracking in the query to not lose the information that is cached.

    
16.05.2017 / 21:53