In the previous section, we created and implemented our BookLibraryDB
database wrapper class that will be used by our BookLibrary
application. The next step is to begin creating each of the Razor templates that will connect to our database model allowing the user to interact with the database visually by entering in book details, and having this information presented back to them, so they can make changes, or delete the book item altogether.
Let's begin by performing the following steps:
Create an empty class within the
Views
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.Next, choose the Preprocessed Razor Template option, located within the Text Templating section, and enter in
BookLibraryListing
, as shown in the following screenshot:Next, click on the New button to allow the wizard to proceed...