Hi,
I am able to add data, but not sure how should I update the data. I am getting AddObject,DeleteObject methods not found any method to update.
Thanks
Hi,
I am able to add data, but not sure how should I update the data. I am getting AddObject,DeleteObject methods not found any method to update.
Thanks
You simply grab an (or multiple) object(s), manipulate them and call SaveChanges
on the context. Of course, the object has to be attached to the context and tracking must enabled.
var obj = context.table.first(o => o.ID == 1);
obj.Property1 = data;
context.SaveChanges();