/// <summary> /// Create a new SPA_GuestDiagnosisDetail object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="personelID">Initial value of the PersonelID property.</param> /// <param name="guestID">Initial value of the GuestID property.</param> /// <param name="descDiagnosis">Initial value of the DescDiagnosis property.</param> /// <param name="completed">Initial value of the Completed property.</param> /// <param name="completedDateTime">Initial value of the CompletedDateTime property.</param> public static SPA_GuestDiagnosisDetail CreateSPA_GuestDiagnosisDetail(global::System.Guid id, global::System.Guid personelID, global::System.Guid guestID, global::System.String descDiagnosis, global::System.Boolean completed, global::System.DateTime completedDateTime) { SPA_GuestDiagnosisDetail sPA_GuestDiagnosisDetail = new SPA_GuestDiagnosisDetail(); sPA_GuestDiagnosisDetail.ID = id; sPA_GuestDiagnosisDetail.PersonelID = personelID; sPA_GuestDiagnosisDetail.GuestID = guestID; sPA_GuestDiagnosisDetail.DescDiagnosis = descDiagnosis; sPA_GuestDiagnosisDetail.Completed = completed; sPA_GuestDiagnosisDetail.CompletedDateTime = completedDateTime; return sPA_GuestDiagnosisDetail; }
private void btnMisafirYeni_Click(object sender, RoutedEventArgs e) { SPA_GuestDiagnosisDetail guestFizyo = new SPA_GuestDiagnosisDetail(); guestFizyo.ID = Guid.NewGuid(); guestFizyo.PersonelID = new Guid(cbFizyoterapist.EditValue.ToString()); guestFizyo.GuestID = GuestID; guestFizyo.DiagnosisID = Guid.Parse("A584AB63-6039-45DD-94FB-8C8A1D43DB1C"); //'Seçiniz' varsayılan ekleniyor. guestFizyo.DescDiagnosis = "Misafir Tehşis"; guestFizyo.Completed = false; guestFizyo.CompletedDateTime = DateTime.Now; context.SPA_GuestDiagnosisDetails.Add(guestFizyo); MessageBox.Show("Misafir Kaydedildi."); context.SubmitChanges().Completed += Reception_Completed; }
/// <summary> /// Deprecated Method for adding a new object to the SPA_GuestDiagnosisDetail EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSPA_GuestDiagnosisDetail(SPA_GuestDiagnosisDetail sPA_GuestDiagnosisDetail) { base.AddObject("SPA_GuestDiagnosisDetail", sPA_GuestDiagnosisDetail); }