Update Not Working
Options
Can anyone see why this update does not update the value in the table?
var results = (from bl in a_Bellows_Lots
where bl.Job == "A2559038A"
where bl.BellowsLot == "17213A"
select bl).SingleOrDefault();
results.Quantity = 1;
this.SubmitChanges();
var results = (from bl in a_Bellows_Lots
where bl.Job == "A2559038A"
where bl.BellowsLot == "17213A"
select bl).SingleOrDefault();
results.Quantity = 1;
this.SubmitChanges();
Comments
-
If this.UpdateObject() exists in your data context, then call it your results object before calling SubmitChanges.
Note: Usually UpdateObject() exists in EF data contexts.