O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing data from a SQLite database

In the last recipe of the current chapter, you will learn how to remove data from a particular table in the SQLite database.

As an example, you will introduce the last changes in the project from the previous recipe. You will do this by allowing a user to delete the currently selected entry.

Getting ready

To step through this recipe, you need the project from the previous recipe.

How to do it...

To modify the preceding example by introducing the feature of deleting a currently selected entry, perform the following steps:

  1. Add the CmdDelete property, representing the command, to the MainViewModel class in the MainViewModel.cs file:
            public ICommand CmdDelete { get; set; } 
    
  2. Modify the constructor of the MainViewModel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required