Method CreateDatabase
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
CreateDatabase(IModel)
Create a new database with the name specified in the connection options.
bool CreateDatabase(IModel model)
Parameters
Returns
- bool
trueif the database was created from scratch,falseif it already existed.
Remarks
If the database already exists only new collections will be created.