You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently the behaviour for DeleteAsync is inconsistent,
Actual behaviour
DeleteAsync(id) does not throw whereas
DeleteAsync(id, partitionKey) throws.
Expected behaviour:
All precise DeleteAsync methods have the same behaviour when the entity under deletion is not found. The behaviour should be to throw, since it corresponds to a precise lookup.
DeleteAsync via predicate should not change behaviour, it should not throw, since it is an imprecise lookup. It can delete multiple entities or none. It should however return the number of items that get deleted.
The XML documentation of the IDatabaseRepository interface should be updated.
There will be no flag to control the throwing of exception on deletion. Precise deletions throw, imprecise do not throw.
The text was updated successfully, but these errors were encountered:
currently the behaviour for DeleteAsync is inconsistent,
Actual behaviour
Expected behaviour:
The text was updated successfully, but these errors were encountered: