title: Edit and delete from SQL database through Azure
body: <p>I have been building a Windows Phone 8 app and Windows Azure cloud service that will allow people to store schedules in the cloud. I have implemented a single sign on system and a cloud service used to store the schedule items.</p>
  
  <p>I have however run into yet another problem, as I am using a cloud service to communicate with the database, the commands are slightly different, for example, this is the code to add a record to the database:</p>
  
  <pre><code>public bool addMedication(string userid, string medname, DateTime medtime)
      {
          using (var meds = new TMP_Meds_Entities())
          {
              meds.med_schedule.Add(new med_schedule()
              {
                  userid = userid,
                  medname = medname,
                  medtime = medtime
              });
  
              meds.SaveChanges();
  
              return true;
          }
      }
  </code></pre>
  
  <p>I now need to implement methods to allow a user to edit or delete a particular record in the database, does anybody know how I might go about editing or deleting a record? As a note, I am using EntityFramework.</p>
  
  <p>Thanks</p>