コード例 #1
0
 /// <summary>
 /// 用于向 Department EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToDepartment(Department department)
 {
     base.AddObject("Department", department);
 }
コード例 #2
0
 /// <summary>
 /// 创建新的 Department 对象。
 /// </summary>
 /// <param name="dID">DID 属性的初始值。</param>
 /// <param name="companyCode">CompanyCode 属性的初始值。</param>
 /// <param name="depCode">DepCode 属性的初始值。</param>
 /// <param name="feeDiscountType">FeeDiscountType 属性的初始值。</param>
 /// <param name="feeDiscountRate">FeeDiscountRate 属性的初始值。</param>
 /// <param name="weightDiscountType">WeightDiscountType 属性的初始值。</param>
 /// <param name="weightDiscountRate">WeightDiscountRate 属性的初始值。</param>
 /// <param name="settleType">SettleType 属性的初始值。</param>
 /// <param name="weightCalType">WeightCalType 属性的初始值。</param>
 public static Department CreateDepartment(global::System.Guid dID, global::System.String companyCode, global::System.String depCode, global::System.Int32 feeDiscountType, global::System.Decimal feeDiscountRate, global::System.Int32 weightDiscountType, global::System.Decimal weightDiscountRate, global::System.Int32 settleType, global::System.Int32 weightCalType)
 {
     Department department = new Department();
     department.DID = dID;
     department.CompanyCode = companyCode;
     department.DepCode = depCode;
     department.FeeDiscountType = feeDiscountType;
     department.FeeDiscountRate = feeDiscountRate;
     department.WeightDiscountType = weightDiscountType;
     department.WeightDiscountRate = weightDiscountRate;
     department.SettleType = settleType;
     department.WeightCalType = weightCalType;
     return department;
 }