Table of Contents

Method CanConnect

Namespace
MongoDB.EntityFrameworkCore.Storage
Assembly
MongoDB.EntityFrameworkCore.dll

CanConnect()

Determines whether or not the database is available and can be connected to.

public bool CanConnect()

Returns

bool

true if the database is available; false otherwise.

Remarks

Note that being able to connect to the database does not mean that it is up-to-date with regard to schema creation, etc.