Conversions to BsonValue are not supported in LINQ3. This was first discovered when running the test named `Bucket_typed_should_return_expected_result` against LINQ3.
But it is more simply reproduceable:
public class C { public int Id { get; set; } public int I { get; set; } } [Fact] public void Convert_to_BsonValue_should_work() { var client = DriverTestConfiguration.Linq3Client; var database = client.GetDatabase("test"); var collection = database.GetCollection<C>("test"); var queryable = collection.AsQueryable().Select(x => new { V = (BsonValue)x.I }); var pipeline = queryable.ToString(); }
- is depended on by
-
CSHARP-4331 Make LINQ3 the default LinqProvider
- Closed
-
CSHARP-4358 Update tests that only test against LINQ2 to test against LINQ3 instead of or in addition to LINQ2
- Closed