[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.AddRangeAsync

AddRangeAsync Method

AddRangeAsync<T>(IDataCollection<T>, IReadOnlyList<T>, CancellationToken)

Adds the specified item to the collection.

Declaration
public static Task<int> AddRangeAsync<T>(this IDataCollection<T> dataCollection, IReadOnlyList<T> items, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

IReadOnlyList<T> items

The items to be added.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<int>
Type Parameters
Name Description
T