Method DeleteInBatches
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
DeleteInBatches<T, K>(IBulkCrudTryHelperComponent<T, K>, IEnumerable<T>)
Deletes a collection of instances in batches.
public static BulkDeleteResult<K> DeleteInBatches<T, K>(this IBulkCrudTryHelperComponent<T, K> helper, IEnumerable<T> instances) where T : IManagerIdentifiableObject<K>, DataType where K : IEquatable<K>
Parameters
helper
IBulkCrudTryHelperComponent<T, K>The bulk CRUD helper component used to perform delete operations.
instances
IEnumerable<T>The instances to delete.
Returns
- BulkDeleteResult<K>
A result indicating the success and failure details of the operation.
Type Parameters
T
The type of the data elements.
K
The type of the identifier for the data elements.
Exceptions
- ArgumentNullException
Thrown when
helper
orinstances
is null.