O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The database class

The 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:

Image

Image 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required