[CSHARP-4746] PipelineUpdateDefinition cannot be combined with any other update definition Created: 07/Aug/23  Updated: 09/Aug/23  Resolved: 09/Aug/23

Status: Closed
Project: C# Driver
Component/s: API, Builders, CRUD
Affects Version/s: 2.20.0
Fix Version/s: 2.21.0

Type: Improvement Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-4745 Unable to cast object of type 'MongoD... Closed
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Because of the way UpdateDefinitions are declared it is not a compile time error to attempt to combine a PipelineUpdateDefinition with toher UpdateDefinitions.

However, this is not legal, so since it is not a compile time error we should throw a runtime exception.



 Comments   
Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-4746: PipelineUpdateDefinition cannot be combined with any other update definition.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/a88dc2eb20dc6113a0f31e4e4ece95a222c7b67b

Generated at Wed Feb 07 21:49:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.