removed redundant ToList() calls and added line break after region
This commit is contained in:
@@ -69,7 +69,7 @@ namespace MongoDbGenericRepository.DataAccess.Create
|
||||
}
|
||||
else
|
||||
{
|
||||
await GetCollection<TDocument, TKey>().InsertManyAsync(documentsList.ToList(), null, cancellationToken);
|
||||
await GetCollection<TDocument, TKey>().InsertManyAsync(documentsList, null, cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace MongoDbGenericRepository.DataAccess.Create
|
||||
}
|
||||
else
|
||||
{
|
||||
GetCollection<TDocument, TKey>().InsertMany(documentList.ToList(), cancellationToken: cancellationToken);
|
||||
GetCollection<TDocument, TKey>().InsertMany(documentList, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user