/// <summary> /// Create a new Doctor object. /// </summary> /// <param name="doctorId">Initial value of the doctorId property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="dob">Initial value of the dob property.</param> /// <param name="gender">Initial value of the gender property.</param> /// <param name="phone">Initial value of the phone property.</param> /// <param name="email">Initial value of the email property.</param> /// <param name="nationality">Initial value of the nationality property.</param> /// <param name="icNum">Initial value of the icNum property.</param> /// <param name="street">Initial value of the street property.</param> /// <param name="country">Initial value of the country property.</param> /// <param name="postalCode">Initial value of the postalCode property.</param> public static Doctor CreateDoctor(global::System.String doctorId, global::System.String name, global::System.DateTime dob, global::System.String gender, global::System.Int32 phone, global::System.String email, global::System.String nationality, global::System.String icNum, global::System.String street, global::System.String country, global::System.Int32 postalCode) { Doctor doctor = new Doctor(); doctor.doctorId = doctorId; doctor.name = name; doctor.dob = dob; doctor.gender = gender; doctor.phone = phone; doctor.email = email; doctor.nationality = nationality; doctor.icNum = icNum; doctor.street = street; doctor.country = country; doctor.postalCode = postalCode; return doctor; }
/// <summary> /// Deprecated Method for adding a new object to the Doctors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDoctors(Doctor doctor) { base.AddObject("Doctors", doctor); }