Home > c# > EntityFramework force the update of an object

EntityFramework force the update of an object

The Problem

You are trying to save some changes to an object.
Your code looks like the following:

But the changes are not being saved

The Solution

Entity framework is not aware that the job object has been changed so you need to tell it, by adding line 8.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Categories: c# Tags:
  1. No comments yet.
  1. No trackbacks yet.