/// <summary> /// Deprecated Method for adding a new object to the Staffs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStaffs(Staff staff) { base.AddObject("Staffs", staff); }
/// <summary> /// Create a new Staff object. /// </summary> /// <param name="staffId">Initial value of the staffId property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="type">Initial value of the type property.</param> /// <param name="dob">Initial value of the dob property.</param> /// <param name="gender">Initial value of the gender property.</param> /// <param name="phone">Initial value of the phone property.</param> /// <param name="icNum">Initial value of the icNum property.</param> /// <param name="nationality">Initial value of the nationality property.</param> /// <param name="street">Initial value of the street property.</param> /// <param name="country">Initial value of the country property.</param> /// <param name="postalCode">Initial value of the postalCode property.</param> public static Staff CreateStaff(global::System.String staffId, global::System.String name, global::System.String type, global::System.DateTime dob, global::System.String gender, global::System.Int32 phone, global::System.String icNum, global::System.String nationality, global::System.String street, global::System.String country, global::System.Int32 postalCode) { Staff staff = new Staff(); staff.staffId = staffId; staff.name = name; staff.type = type; staff.dob = dob; staff.gender = gender; staff.phone = phone; staff.icNum = icNum; staff.nationality = nationality; staff.street = street; staff.country = country; staff.postalCode = postalCode; return staff; }