Hi there,
I have a UnitOfWork object. When adding an entity for Delete, this works:
MyEntity e = new MyEntity();
e.PKey = "Blah";
e.IsNew = false;
uow.AddForDelete(e);
uow._entitiesForDelete.Count is now 1.
Then, I try to remove the entity for deletion.
MyEntity e = new MyEntity();
e.PKey = "Blah";
e.IsNew = false;
uow.RemoveFromUoW(e);
but uow._entitiesForDelete.Count is still 1.
I assumed the Equals implementation for the UnitOfWork collections is the same as EntityCollections? This works for an EntityCollection, should it work the same way with UoW?