In the previous section, we successfully created and implemented our BookItem
database model that will be used by our BookLibrary
application. Our next step is to begin implementing the code required for our BookItemDatabase
class model, by performing the following steps:
Create a new folder within the
BookLibrary
project solution, calledDatabase
as shown in the following screenshot:Next, create an empty class within the
Database
folder, 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
BookDatabase
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
BookDatabase.cs
file is displayed within the code editor window, and then enter in the following code snippet:// ...