Table of Contents

Method GetDatabase

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GetDatabase(string, MongoDatabaseSettings)

Gets a database.

public 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.