public MongoDbContext(MongoDbOptions options) { if (options == null) { throw new InvalidOperationException("The options argument at MongoDbContext is mandatory."); } MongoClient = options.MongoClient; DiscoverAndInitializeCollections(); }
public MongoDbOptionBuilder(MongoDbOptions options) { _mongoDbOptions = options; _mongoDbOption = new MongoDbOption(); _mongoClientSettings = new MongoClientSettings(); }