Now, we have updated our WalksMainPage code-behind file to handle deletions from the SQL Server database. Our next step is to start implementing the necessary code within the WalksMainPageViewModel class, which will be used by our WalksMainPage.
The WalksMainPageViewModel ViewModel class will be used to populate our data model from our SQL Server database by calling the GetWalkEntries on our AzureDatabase property and displaying the information within our ListView by setting the BindingContext within the ContentPage.
Let's take a look at how we can achieve this by going through the following steps:
- Locate and open the WalksMainPageViewModel.cs file, which is located within the ViewModels folder, ...