示例#1
0
 public void UpdateManpowerSalary(ManpowerSalary salary)
 {
     var oldSalary = GetManpowerSalary(salary.Id);
     oldSalary.Salary = salary.Salary;
     oldSalary.DealerManpowerId = salary.DealerManpowerId;
     oldSalary.Description = salary.Description;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ManpowerSalaries EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToManpowerSalaries(ManpowerSalary manpowerSalary)
 {
     base.AddObject("ManpowerSalaries", manpowerSalary);
 }
示例#3
0
 /// <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;
 }