[]
Adds the specified item to the collection.
public static Task<int> AddRangeAsync<T>(this IDataCollection<T> dataCollection, IReadOnlyList<T> items, CancellationToken cancellationToken = default) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
IReadOnlyList<T> | items | The items to be added. |
CancellationToken | cancellationToken | The cancellation token. |
Type | Description |
---|---|
Task<int> |
Name | Description |
---|---|
T |