This is the general availability release for the 3.6.0 version of the driver.
The main new features in 3.6.0 include:
- CSHARP-5717: Typed builders for vector indexes
- CSHARP-5812: Support lexical prefilters for vector search
- CSHARP-5763: Auto-embedding for vector search
- CSHARP-5737: Add legacy representation for TimeOnly
- CSHARP-5705: Use standard RID paths in MongoDB.Driver.Encryption packaging
- CSHARP-5730: Support static String.Compare method
- CSHARP-1913: Support using Dictionary fields as IEnumerable<KeyValuePair<TKey, TValue>>
- CSHARP-5779: Support Dictionary Keys and Values properties
- CSHARP-5786: Add Decimal128 ctor overload for byte/short, for compatibility with net10
- CSHARP-5793: Map MemoryExtensions Contains and SequenceEqual with null comparer to Enumerable methods with no comparer parameter
- CSHARP-5749: Support C# 14 changes that result in overloads now binding MemoryExtensions extension methods
Improvements:
- CSHARP-5675: Where possible, return null for average over the empty set
- CSHARP-5666: Remove GetBitArray allocations in BsonClassMapSerializer.DeserializeClass
- CSHARP-5748: Use KeyValuePairSerializer consistently for KeyValuePair
- CSHARP-5663: Avoid RentedBuffer boxing in DisposableSegment
- CSHARP-5734: Update doc comments for IBsonIdProvider GetDocumentId method
- CSHARP-5348: Avoid allocations for Bson*Context
- CSHARP-5628: Add new boolean expression simplifications to PartialEvaluator
- CSHARP-5632: Consolidate driver project Type extension methods in Misc\TypeExtensions.cs
- CSHARP-5785: Optimize LINQ translation for First() and FirstOrDefault() methods with predicates
- CSHARP-5667: Switch to 'for' loop in BsonClassMapSerializer.SerializeClass to reduce allocations
- CSHARP-5807: Add benchmarks with strong-typed POCOs
Fixes:
- CSHARP-5725: C# driver stopped working with Unity since v3.2.0
- CSHARP-5757: The problem of filtering by derived types
Maintenance:
- CSHARP-3984: Remove BinaryConnection.DropBox
- CSHARP-5744: Fix interruptInUse flaky tests
The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.