Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade MongoDB.Driver to 3.1.0. #21807

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft

Upgrade MongoDB.Driver to 3.1.0. #21807

wants to merge 3 commits into from

Conversation

maliming
Copy link
Member

@maliming maliming commented Jan 3, 2025

Resolve #21491

MongoDB.Driver 3.x:

  • Async/Await Support: Write non-blocking, asynchronous code easily.
  • Fluent API: Build queries and updates intuitively with Builders.
  • LINQ Support: Use LINQ for querying MongoDB collections.
  • Enhanced Aggregation Framework: Simplified API for aggregation pipelines.
  • Strongly-Typed Classes: Interact with POCOs instead of BsonDocument.
  • Connection Pooling: Optimized for better performance and configurability.
  • Unified CRUD API: Consistent methods like InsertOneAsync, FindAsync, etc.
  • Transaction Support: ACID transactions for MongoDB 4.0+.
  • Improved Error Handling: Granular exceptions for better debugging.
  • GridFS Enhancements: Efficient APIs for large file storage and retrieval.

https://www.mongodb.com/docs/drivers/csharp/current/upgrade/v3/

Migration guide: TODO

@maliming maliming added this to the 9.2-preview milestone Jan 3, 2025
@maliming maliming marked this pull request as draft January 3, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MongoDBRepository not working in .NET 9 with MongoDB.Driver (3.0.0)
1 participant