コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PayrollItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPayrollItems(PayrollItem payrollItem)
 {
     base.AddObject("PayrollItems", payrollItem);
 }
コード例 #2
0
 /// <summary>
 /// Create a new PayrollItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="rowStatus">Initial value of the RowStatus property.</param>
 /// <param name="payrolGroupId">Initial value of the PayrolGroupId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="itemType">Initial value of the ItemType property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="value">Initial value of the Value property.</param>
 /// <param name="unit">Initial value of the Unit property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static PayrollItem CreatePayrollItem(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.Byte rowStatus, global::System.Int32 payrolGroupId, global::System.String name, global::System.String itemType, global::System.String type, global::System.Decimal value, global::System.Decimal unit, global::System.String createdBy, global::System.DateTime createdDate)
 {
     PayrollItem payrollItem = new PayrollItem();
     payrollItem.Id = id;
     payrollItem.RowVersion = rowVersion;
     payrollItem.RowStatus = rowStatus;
     payrollItem.PayrolGroupId = payrolGroupId;
     payrollItem.Name = name;
     payrollItem.ItemType = itemType;
     payrollItem.Type = type;
     payrollItem.Value = value;
     payrollItem.Unit = unit;
     payrollItem.CreatedBy = createdBy;
     payrollItem.CreatedDate = createdDate;
     return payrollItem;
 }