I know I can use the following command to add a new migration and create the database :
dotnet ef migrations add MigrationName -c DbContextName dotnet ef data
If you need to create you model tables also if in your DB there are some other tables you can use
RelationalDatabaseCreator databaseCreator = (RelationalDatabaseCreator) context.Database.GetService(); databaseCreator.CreateTables();