/// <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; }
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 }; }
/// <summary> /// Deprecated Method for adding a new object to the Patient EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPatient(Patient patient) { base.AddObject("Patient", patient); }