0
Completed

Adapter context should not clear when moving adapters

Matthew Clark 12 years ago updated by anonymous 8 years ago 4

When you attempt to promote or demote an adapter, the service attempts to clear the entity context. This is not necessary and introduces additional overhead, since the moved adapter will continue to use the same identifier for its entities.

Presently, an attempt to do this will result in the error seen in IDB-712 (and delete the adapter you were trying to move completely), but a delete should not be attempted at all in this case.

There's an event on the Adapter repository which clears the adapter context on delete. To move into a composite's collection an adapter obviously has to be deleted from the overarching repository. A new method needs to be added which Moves one adapter to another IAdapterRepository.

Reassigned for confirmation of completion.

Matthew, are you able to confirm this?

Yes, I have promoted and demoted several adapters in testing the latest service build. Issue closed.