Method CreateDatabase
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
CreateDatabase(IDesignTimeModel)
Create a new database with the name specified in the connection options.
public bool CreateDatabase(IDesignTimeModel model)
Parameters
modelIDesignTimeModelThe IDesignTimeModel that informs how the database should be created.
Returns
Remarks
If the database already exists only new collections will be created.