Method CreateOrUpdateInBatches
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
CreateOrUpdateInBatches<T, K>(IBulkCrudHelperComponent<T, K>, IEnumerable<T>)
Creates or updates a collection of instances in batches.
public static BulkCreateOrUpdateResult<T, K> CreateOrUpdateInBatches<T, K>(this IBulkCrudHelperComponent<T, K> helper, IEnumerable<T> instances) where T : IManagerIdentifiableObject<K>, DataType where K : IEquatable<K>
Parameters
helper
IBulkCrudHelperComponent<T, K>The bulk CRUD helper component used to perform create or update operations.
instances
IEnumerable<T>The instances to create or update.
Returns
- BulkCreateOrUpdateResult<T, 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.