Query and Update the database Windows Phone SDK


show more Querying and updating the database provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Windows Phone SDK Essential Training show less
please wait ...

Querying and updating the database

We've got two last things to do before we fire this up and see it running against the database. First we're going to update the DetailsPage, then we're going to update the icon, and we're going to give it a try. So let's go over to the Solution Explorer. I'll open up the CS code-behind file for the DetailsPage. XAML doesn't change any between the flat file version and the database version of sonnets plus. So we'll put in the new version and take a look and see what we changed.

First we add a reference to System.Linq because we need to be able to do it LinkQuery and then OnNavigatedTo method it's still the same as it was before. But our toggleFavorite_Click handler is going to be different, because here's where we use things differently between the XML and the database. So first, when the user taps on the Toggle button, we need to be able to go find the sonnet in the database because that's what we want to update. So we do that with a little bit more soph...

Querying and updating the database
Video duration: 6m 12s 4h 34m Beginner

Viewers:

Querying and updating the database provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Windows Phone SDK Essential Training

Subject:
Developer
Software:
Windows Phone
Author:
please wait ...