/// <summary> /// Create a new clinician object. /// </summary> /// <param name="cFirstName">Initial value of the cFirstName property.</param> /// <param name="cIsAdmin">Initial value of the cIsAdmin property.</param> /// <param name="cLastName">Initial value of the cLastName property.</param> /// <param name="cPassword">Initial value of the cPassword property.</param> /// <param name="cUserName">Initial value of the cUserName property.</param> public static clinician Createclinician(global::System.String cFirstName, global::System.Boolean cIsAdmin, global::System.String cLastName, global::System.String cPassword, global::System.String cUserName) { clinician clinician = new clinician(); clinician.cFirstName = cFirstName; clinician.cIsAdmin = cIsAdmin; clinician.cLastName = cLastName; clinician.cPassword = cPassword; clinician.cUserName = cUserName; return(clinician); }
internal static void AddPatient(string firstNames, string lastName, DateTime dateOfBirth, string gender, string contactNumber, string clinicianUserName) { stromohabDevEntities db = new stromohabDevEntities(); clinician patientsClinician = db.clinicians.Single(c => c.cUserName == clinicianUserName); patientsClinician.patients.Add(new patient { pFirstName = firstNames, pLastName = lastName, pDateOfBirth = dateOfBirth, pGender = gender, pContactNumber = contactNumber, Clinicians_cUserName = clinicianUserName }); db.SaveChanges(); }
/// <summary> /// Create a new clinician object. /// </summary> /// <param name="cFirstName">Initial value of the cFirstName property.</param> /// <param name="cIsAdmin">Initial value of the cIsAdmin property.</param> /// <param name="cLastName">Initial value of the cLastName property.</param> /// <param name="cPassword">Initial value of the cPassword property.</param> /// <param name="cUserName">Initial value of the cUserName property.</param> public static clinician Createclinician(global::System.String cFirstName, global::System.Boolean cIsAdmin, global::System.String cLastName, global::System.String cPassword, global::System.String cUserName) { clinician clinician = new clinician(); clinician.cFirstName = cFirstName; clinician.cIsAdmin = cIsAdmin; clinician.cLastName = cLastName; clinician.cPassword = cPassword; clinician.cUserName = cUserName; return clinician; }
/// <summary> /// Deprecated Method for adding a new object to the clinicians EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToclinicians(clinician clinician) { base.AddObject("clinicians", clinician); }