sql - Save and read data from Azure database to Windows 8 app -


i have azure database instance , windows 8 app running on arm device. need connect azure database , save data database , retrieve of fields of database. know can connect database using azure mobile services tutorial shows how read data. there way in can save data database too?

i have sales table , have user save sales table , read (and display) rows match username.

sure, tutorial shows how save data - todo list items. in step 8 below link takes you you'll see call insertasync in turn fires off associated script. or if worked demo app can set windows azure portal, you'll see code this:

    private async void inserttodoitem(todoitem todoitem)     {         // code inserts new todoitem database. when operation completes         // , mobile services has assigned id, item added collectionview         await todotable.insertasync(todoitem);         items.add(todoitem);                             }      ...      private void buttonsave_click(object sender, routedeventargs e)     {         var todoitem = new todoitem { text = textinput.text };         inserttodoitem(todoitem);     } 

then in windows azure portal if need manipulation of object before goes database, can node.js scripting. example, image below shows how replace whatever text of todoitem set in code hard coded "replaced text," illustrative not useful :)

enter image description here


Comments