Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Doctor object.
 /// </summary>
 /// <param name="doctorid">Initial value of the Doctorid property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="telephone">Initial value of the Telephone property.</param>
 /// <param name="username">Initial value of the Username property.</param>
 public static Doctor CreateDoctor(global::System.Int32 doctorid, global::System.String firstName, global::System.String lastName, global::System.String telephone, global::System.String username)
 {
     Doctor doctor = new Doctor();
     doctor.Doctorid = doctorid;
     doctor.FirstName = firstName;
     doctor.LastName = lastName;
     doctor.Telephone = telephone;
     doctor.Username = username;
     return doctor;
 }
Ejemplo 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);
 }