windows phone 7 - WP7 SQL Server CE How to Update -
i'm updating windows phone app mango , starting use sql server ce. can insert , select data struggling understand how update data.
most of examples basic tutorials , show inserting , retrieving data not updating. believe need attach class have retrieved data context far have got.
please can point me online tutorial showing how this. or example code great.
thanks.
update
basic updating looks simple - query database, update object, call submitchanges.
my scenario little more complicated.
i have page showing list of jobs. job (jobdetail) selected , page used edit details. job written cache (another table jobcache) while job edited. if user cancels edit cache deleted. if user saves edit jobcache object pulled cache, converted object of type jobdetail , want update database new jobdetail object.i don't think can call submitchanges object not generated query. believe need somehow use attach this. question how?
why not original jobdetail object, update changed properties cahced object , call submitchanges ?
Comments
Post a Comment