コード例 #1
0
 /// <summary>
 /// Create a new BillOfMaterial object.
 /// </summary>
 /// <param name="billOfMaterialsID">Initial value of the BillOfMaterialsID property.</param>
 /// <param name="componentID">Initial value of the ComponentID property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="unitMeasureCode">Initial value of the UnitMeasureCode property.</param>
 /// <param name="bOMLevel">Initial value of the BOMLevel property.</param>
 /// <param name="perAssemblyQty">Initial value of the PerAssemblyQty property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static BillOfMaterial CreateBillOfMaterial(global::System.Int32 billOfMaterialsID, global::System.Int32 componentID, global::System.DateTime startDate, global::System.String unitMeasureCode, global::System.Int16 bOMLevel, global::System.Decimal perAssemblyQty, global::System.DateTime modifiedDate)
 {
     BillOfMaterial billOfMaterial = new BillOfMaterial();
     billOfMaterial.BillOfMaterialsID = billOfMaterialsID;
     billOfMaterial.ComponentID = componentID;
     billOfMaterial.StartDate = startDate;
     billOfMaterial.UnitMeasureCode = unitMeasureCode;
     billOfMaterial.BOMLevel = bOMLevel;
     billOfMaterial.PerAssemblyQty = perAssemblyQty;
     billOfMaterial.ModifiedDate = modifiedDate;
     return billOfMaterial;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BillOfMaterials EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBillOfMaterials(BillOfMaterial billOfMaterial)
 {
     base.AddObject("BillOfMaterials", billOfMaterial);
 }