For EF6, I can check whether a database exists in the following way:
How can I do this in EF7?
I have found the solution on my own:
(context.GetService<IDatabaseCreator>() as RelationalDatabaseCreator).Exists()
It works for EF 7.0.0-rc1-final version for SqlServer
If you are checking whether it exists to determine whether you need to create it, you can instead use this;