/// <summary> /// Create a new Department object. /// </summary> /// <param name="dname">Initial value of the Dname property.</param> /// <param name="dNumber">Initial value of the DNumber property.</param> /// <param name="mgrSsn">Initial value of the MgrSsn property.</param> public static Department CreateDepartment(global::System.String dname, global::System.Int32 dNumber, global::System.String mgrSsn) { Department department = new Department(); department.Dname = dname; department.DNumber = dNumber; department.MgrSsn = mgrSsn; return department; }
/// <summary> /// Deprecated Method for adding a new object to the Departments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDepartments(Department department) { base.AddObject("Departments", department); }