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

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.