I am working on a WPF project and have added a domain service which I have tied to my DataContext using EF. The problem is the "Update" on my domain service for my object 'Cat' is returning a null changeset. The changeset in the following line is null when I click Save and I have changed a prop value on my view, for example, I changed the description of the Cat to something like 'Furry Cat' and this is set on the property if I hover on the currentCat and check the desc property???
public void UpdateCat(Cat currentCat)
{
this.ObjectContext.Cats.AttachAsModified(currentCat, ChangeSet.GetOriginal(currentCat));
}
开发者_Go百科
Is there something I am missing?Please help..
精彩评论