Method DatabaseExistsAsync
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
DatabaseExistsAsync(CancellationToken)
Determine if the database already exists or not asynchronously.
public Task<bool> DatabaseExistsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel this asynchronous request.