Exemplo n.º 1
0
 /// <summary>
 /// Create a new Doctor object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="fullName">Initial value of the fullName property.</param>
 /// <param name="address">Initial value of the address property.</param>
 /// <param name="city">Initial value of the city property.</param>
 /// <param name="country">Initial value of the country property.</param>
 /// <param name="phoneNumber">Initial value of the phoneNumber property.</param>
 /// <param name="dob">Initial value of the dob property.</param>
 /// <param name="email">Initial value of the email property.</param>
 /// <param name="experience">Initial value of the experience property.</param>
 /// <param name="speciality">Initial value of the speciality property.</param>
 public static Doctor CreateDoctor(global::System.Int32 id, global::System.String fullName, global::System.Byte[] address, global::System.String city, global::System.String country, global::System.Int32 phoneNumber, global::System.DateTime dob, global::System.Byte[] email, global::System.Int32 experience, global::System.String speciality)
 {
     Doctor doctor = new Doctor();
     doctor.id = id;
     doctor.fullName = fullName;
     doctor.address = address;
     doctor.city = city;
     doctor.country = country;
     doctor.phoneNumber = phoneNumber;
     doctor.dob = dob;
     doctor.email = email;
     doctor.experience = experience;
     doctor.speciality = speciality;
     return doctor;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Doctors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDoctors(Doctor doctor)
 {
     base.AddObject("Doctors", doctor);
 }