I am using DeleteEntityCollection and it appears that the delete action is delayed. After the delete, I call a fetch and the entities are still there. If I put a 10 second timer, then the Fetch returns no records. Is there a way to force the Delete to commit. I tried putting a d.Commit() statement after the delete, but this did not solve the problem.
I am using the Adapter.
DataAccessAdapter d = new DataAccessAdapter();
EntityCollection<PatientRegistrationAddressEntity> pAddress = new EntityCollection<PatientRegistrationAddressEntity>(new PatientRegistrationAddressEntityFactory());
d.FetchEntityCollection(pAddress, null);
d.DeleteEntityCollection(pAddress);
// at this point, the record have not been deleted.
d.FetchEntityCollection(pAddress, null);
Thanks