Skip to content

Commit c8678c1

Browse files
g0t4rstam
authored andcommitted
Add an overload of BulkWriteOperation's Execute to not take a WriteConcern, should help consumer code readability.
1 parent d93112a commit c8678c1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

MongoDB.Driver/Operations/BulkWriteOperation.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,16 @@ internal BulkWriteOperation(MongoCollection collection, bool isOrdered)
3939
/// <summary>
4040
/// Executes the bulk operation.
4141
/// </summary>
42-
/// <param name="writeConcern">Optional write concern (collection default will be used if null).</param>
42+
/// <returns>A BulkWriteResult.</returns>
43+
public BulkWriteResult Execute()
44+
{
45+
return Execute(null);
46+
}
47+
48+
/// <summary>
49+
/// Executes the bulk operation.
50+
/// </summary>
51+
/// <param name="writeConcern">The write concern for this bulk operation.</param>
4352
/// <returns>A BulkWriteResult.</returns>
4453
public BulkWriteResult Execute(WriteConcern writeConcern)
4554
{

0 commit comments

Comments
 (0)