In the previous section, we successfully created and implemented our BookDatabase
database class that will be used by our BookLibrary
application. Our next step is to begin implementing the code required for our BookLibraryDB
class that will act as a wrapper for our BookDatabase
class, to perform all database actions for our BookLibrary
application.
Let's begin by performing the following steps:
Create an empty class within the
BookLibrary
solution, by choosing Add | New File..., as you did when creating the model in the previous section entitled Creating and implementing the book library database model, located within this chapter.Then, enter in
BookLibraryDB
for the name of the new class that you want to create, and click on the New button to allow the wizard to proceed and create the new file.Next, ensure that the
BookLibraryDB.cs
file is displayed within the code editor window, and then enter in the following code snippet:...