/// <summary> /// Deprecated Method for adding a new object to the Department EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDepartment(Department department) { base.AddObject("Department", department); }
/// <summary> /// Create a new Department object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="foundation">Initial value of the Foundation property.</param> /// <param name="qualityLevel">Initial value of the QualityLevel property.</param> /// <param name="companyId">Initial value of the CompanyId property.</param> /// <param name="managerId">Initial value of the ManagerId property.</param> public static Department CreateDepartment(global::System.Int32 id, global::System.String name, global::System.DateTime foundation, global::System.Int32 qualityLevel, global::System.Int32 companyId, global::System.Int32 managerId) { Department department = new Department(); department.Id = id; department.Name = name; department.Foundation = foundation; department.QualityLevel = qualityLevel; department.CompanyId = companyId; department.ManagerId = managerId; return department; }