Table of Contents

Method GetDatabase

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GetDatabase(string, MongoDatabaseSettings)

Gets a database.

IMongoDatabase GetDatabase(string name, MongoDatabaseSettings settings = null)

Parameters

name string

The name of the database.

settings MongoDatabaseSettings

The database settings.

Returns

IMongoDatabase

An implementation of a database.