In linq-to-sql, when I try to get the changes from Entity.GetChangeSet() method, it returns [Inserts: 0, Deletes:0, Updates:0] even there is an update.
I’m using it as suggested before the commitChanges() call.
the problem occurs like this:
var item = Entity.GetItemById(itemId).FirstOrDefault();
item.Property1 = "Something";
var changes = Entity.GetChangeSet().ToList();
Entity.SubmitChanges();
//changes is: [Inserts: 0, Deletes:0, Updates:0]
After a few bad days, I figured out that after deleting and recreating the entity, cleaning the solution helped me and the method worked like a charm.
I guess there was an update error that prevented it.