O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

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

Creating and implementing the BookDatabase class

In this section, we will take a look at how to create the BookDatabase class that will inherit from our IBookDatabase interface and implement the underlying instance methods that we declared within our interface class so that we can communicate with SQLite.net in order to perform all database actions for our BookLibrary application.

Let's start by creating the BookDatabase class for our BookLibrary app by going through the following steps:

  1. Ensure that the BookLibrary.iOS solution is open within the Visual Studio for Mac IDE.
  2. Next, right-click on the Database folder and choose Add | New File... from the pop-up menu.
  3. Then, choose the Empty Class option under the General section and enter BookDatabase ...

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