Esempio n. 1
0
        /// <summary>
        /// 建立新 SalesOrderHeader 物件。
        /// </summary>
        /// <param name="salesOrderID">SalesOrderID 屬性的初始值。</param>
        /// <param name="revisionNumber">RevisionNumber 屬性的初始值。</param>
        /// <param name="orderDate">OrderDate 屬性的初始值。</param>
        /// <param name="dueDate">DueDate 屬性的初始值。</param>
        /// <param name="status">Status 屬性的初始值。</param>
        /// <param name="onlineOrderFlag">OnlineOrderFlag 屬性的初始值。</param>
        /// <param name="salesOrderNumber">SalesOrderNumber 屬性的初始值。</param>
        /// <param name="customerID">CustomerID 屬性的初始值。</param>
        /// <param name="billToAddressID">BillToAddressID 屬性的初始值。</param>
        /// <param name="shipToAddressID">ShipToAddressID 屬性的初始值。</param>
        /// <param name="shipMethodID">ShipMethodID 屬性的初始值。</param>
        /// <param name="subTotal">SubTotal 屬性的初始值。</param>
        /// <param name="taxAmt">TaxAmt 屬性的初始值。</param>
        /// <param name="freight">Freight 屬性的初始值。</param>
        /// <param name="totalDue">TotalDue 屬性的初始值。</param>
        /// <param name="rowguid">rowguid 屬性的初始值。</param>
        /// <param name="modifiedDate">ModifiedDate 屬性的初始值。</param>
        public static SalesOrderHeader CreateSalesOrderHeader(global::System.Int32 salesOrderID, global::System.Byte revisionNumber, global::System.DateTime orderDate, global::System.DateTime dueDate, global::System.Byte status, global::System.Boolean onlineOrderFlag, global::System.String salesOrderNumber, global::System.Int32 customerID, global::System.Int32 billToAddressID, global::System.Int32 shipToAddressID, global::System.Int32 shipMethodID, global::System.Decimal subTotal, global::System.Decimal taxAmt, global::System.Decimal freight, global::System.Decimal totalDue, global::System.Guid rowguid, global::System.DateTime modifiedDate)
        {
            SalesOrderHeader salesOrderHeader = new SalesOrderHeader();

            salesOrderHeader.SalesOrderID     = salesOrderID;
            salesOrderHeader.RevisionNumber   = revisionNumber;
            salesOrderHeader.OrderDate        = orderDate;
            salesOrderHeader.DueDate          = dueDate;
            salesOrderHeader.Status           = status;
            salesOrderHeader.OnlineOrderFlag  = onlineOrderFlag;
            salesOrderHeader.SalesOrderNumber = salesOrderNumber;
            salesOrderHeader.CustomerID       = customerID;
            salesOrderHeader.BillToAddressID  = billToAddressID;
            salesOrderHeader.ShipToAddressID  = shipToAddressID;
            salesOrderHeader.ShipMethodID     = shipMethodID;
            salesOrderHeader.SubTotal         = subTotal;
            salesOrderHeader.TaxAmt           = taxAmt;
            salesOrderHeader.Freight          = freight;
            salesOrderHeader.TotalDue         = totalDue;
            salesOrderHeader.rowguid          = rowguid;
            salesOrderHeader.ModifiedDate     = modifiedDate;
            return(salesOrderHeader);
        }
Esempio n. 2
0
 /// <summary>
 /// 將新物件加入 SalesOrderHeader EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddToSalesOrderHeader(SalesOrderHeader salesOrderHeader)
 {
     base.AddObject("SalesOrderHeader", salesOrderHeader);
 }