public void UpdateManpowerSalary(ManpowerSalary salary) { var oldSalary = GetManpowerSalary(salary.Id); oldSalary.Salary = salary.Salary; oldSalary.DealerManpowerId = salary.DealerManpowerId; oldSalary.Description = salary.Description; }
/// <summary> /// Deprecated Method for adding a new object to the ManpowerSalaries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToManpowerSalaries(ManpowerSalary manpowerSalary) { base.AddObject("ManpowerSalaries", manpowerSalary); }
/// <summary> /// Create a new ManpowerSalary object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="salary">Initial value of the Salary property.</param> /// <param name="objectInfo">Initial value of the ObjectInfo property.</param> /// <param name="dealerManpowerId">Initial value of the DealerManpowerId property.</param> public static ManpowerSalary CreateManpowerSalary(global::System.Int32 id, global::System.Double salary, ObjectInfo objectInfo, global::System.Int32 dealerManpowerId) { ManpowerSalary manpowerSalary = new ManpowerSalary(); manpowerSalary.Id = id; manpowerSalary.Salary = salary; manpowerSalary.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo"); manpowerSalary.DealerManpowerId = dealerManpowerId; return manpowerSalary; }