For EF6, I can check whether a database exists in the following way:
context.Database.Exists()
How can I do this in EF Core?
UPDATE .Net Core 3.1
To check if a database exists and can be contacted:
dbContext.Database.CanConnect()