/// <summary> /// 用于向 Doctors EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToDoctors(Doctor doctor) { base.AddObject("Doctors", doctor); }
/// <summary> /// 创建新的 Doctor 对象。 /// </summary> /// <param name="doctorID">DoctorID 属性的初始值。</param> /// <param name="sectionID">SectionID 属性的初始值。</param> /// <param name="password">Password 属性的初始值。</param> public static Doctor CreateDoctor(global::System.String doctorID, global::System.String sectionID, global::System.String password) { Doctor doctor = new Doctor(); doctor.DoctorID = doctorID; doctor.SectionID = sectionID; doctor.Password = password; return doctor; }