INNER CODE UNIT · C#
ExtendedBenchmarks
mongodb/mongo-efcore-provider · benchmarks/MongoDB.EntityFrameworkCore.Benchmarks/ExtendedBenchmarks.cs:15
public class ExtendedBenchmarks
{
private const int AccountN = 200;
private const int OrderN = 10_000;
private const int WideN = 5_000;
private const int ZipThreshold = 10_500;
private DbContextOptions<BenchmarkDbContext> _efOptions = null!;
private IMongoCollection<Order> _orderColl = null!;
private IMongoCollection<WideEntity> _wideColl = null!;
private MongoClient _client = null!;
private string _dbName = null!;
// Typed POCO for DriverComplexQuery output: carries the full Order graph (all fields)
// plus the looked-up Account, matching the same shape EF materializes via Include(o => o.Account).
private sealed class OrderFull
{
[BsonId] public ObjectId Id { get; set; }