/// <summary> /// 用于向 PreviousEmployees EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToPreviousEmployees(PreviousEmployee previousEmployee) { base.AddObject("PreviousEmployees", previousEmployee); }
/// <summary> /// 创建新的 PreviousEmployee 对象。 /// </summary> /// <param name="employeeID">EmployeeID 属性的初始值。</param> /// <param name="lastName">LastName 属性的初始值。</param> /// <param name="firstName">FirstName 属性的初始值。</param> public static PreviousEmployee CreatePreviousEmployee(global::System.Int32 employeeID, global::System.String lastName, global::System.String firstName) { PreviousEmployee previousEmployee = new PreviousEmployee(); previousEmployee.EmployeeID = employeeID; previousEmployee.LastName = lastName; previousEmployee.FirstName = firstName; return previousEmployee; }