DbContext constructor gives you the ability to control the connection to the database, its name and location, but Entity Framework also provides a
Database class that provides some very useful functionality. Let’s look at it now:
Put On Your Thinking Hat
Can you match the methods of the
Database class shown in the class diagram to their descriptions?
This method is used to execute SQL that does not return data.
This method is used to determine whether the database exists on the server.
This method is used to create ...