/// <summary> /// Deprecated Method for adding a new object to the Patients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPatients(Patient patient) { base.AddObject("Patients", patient); }
/// <summary> /// Create a new Patient object. /// </summary> /// <param name="patientId">Initial value of the PatientId property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="dateOfBirth">Initial value of the DateOfBirth property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="updatedDate">Initial value of the UpdatedDate property.</param> /// <param name="gender">Initial value of the Gender property.</param> public static Patient CreatePatient(global::System.Guid patientId, global::System.String lastName, global::System.String firstName, global::System.DateTime dateOfBirth, global::System.DateTime createdDate, global::System.DateTime updatedDate, global::System.Int32 gender) { Patient patient = new Patient(); patient.PatientId = patientId; patient.LastName = lastName; patient.FirstName = firstName; patient.DateOfBirth = dateOfBirth; patient.CreatedDate = createdDate; patient.UpdatedDate = updatedDate; patient.Gender = gender; return patient; }