Example #1
0
 /// <summary>
 /// Create a new Patient object.
 /// </summary>
 /// <param name="liveID">Initial value of the LiveID property.</param>
 public static Patient CreatePatient(global::System.String liveID)
 {
     Patient patient = new Patient();
     patient.LiveID = liveID;
     return patient;
 }
Example #2
0
 private static PatientUserDataContract ConvertPatientUserToDataContract(Patient user) //-----------
 {
     return new PatientUserDataContract()
     {
         NickName = user.Name,
         UserName = user.LiveID,
         Age = (int)user.Age,
         Allery = user.Allergy,
         Description = user.Description,
         Gender = user.Gender              
     };
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Patient EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPatient(Patient patient)
 {
     base.AddObject("Patient", patient);
 }