/// <summary>
 /// Deprecated Method for adding a new object to the SPA_GuestTherapyDetail EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSPA_GuestTherapyDetail(SPA_GuestTherapyDetail sPA_GuestTherapyDetail)
 {
     base.AddObject("SPA_GuestTherapyDetail", sPA_GuestTherapyDetail);
 }
 /// <summary>
 /// Create a new SPA_GuestTherapyDetail object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="guestID">Initial value of the GuestID property.</param>
 public static SPA_GuestTherapyDetail CreateSPA_GuestTherapyDetail(global::System.Guid id, global::System.Guid guestID)
 {
     SPA_GuestTherapyDetail sPA_GuestTherapyDetail = new SPA_GuestTherapyDetail();
     sPA_GuestTherapyDetail.ID = id;
     sPA_GuestTherapyDetail.GuestID = guestID;
     return sPA_GuestTherapyDetail;
 }
Esempio n. 3
0
        private void btnServisListPlan_Click(object sender, RoutedEventArgs e)
        {
            SPA_GuestTherapyDetail guestTherapy = new SPA_GuestTherapyDetail();
            guestTherapy.ID = Guid.NewGuid();
            guestTherapy.GuestID = GuestID;
            guestTherapy.TherapyID = Guid.Parse(cbeServisList.EditValue.ToString());
            guestTherapy.TherapyDateTime = Convert.ToDateTime(dateEditServis.EditValue);
            guestTherapy.TherapyNote = txtDesc.Text;
            guestTherapy.IsCompleted = false;
            context.SPA_GuestTherapyDetails.Add(guestTherapy);
            context.SubmitChanges().Completed += Fizyoterapist_Completed;

            //if (!guestListRefresh)
            //{
            // loadDiaD = context.Load(context.GetDiagnosisDetailUpdateQuery(ID.ToString()),
            //   new Action<LoadOperation<SPA_GuestDiagnosisDetail>>(GetSpa_DiagnosisDetailUpdate), true);
            //}
        }