Ejemplo n.º 1
0
        /// <summary>
        /// Create a new OrderEntry object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="customer">Initial value of the Customer property.</param>
        /// <param name="orderDate">Initial value of the OrderDate property.</param>
        /// <param name="subtotal">Initial value of the Subtotal property.</param>
        /// <param name="salesTax">Initial value of the SalesTax property.</param>
        /// <param name="total">Initial value of the Total property.</param>
        public static OrderEntry CreateOrderEntry(global::System.Int64 id, global::System.Int64 customer, global::System.DateTime orderDate, global::System.Decimal subtotal, global::System.Decimal salesTax, global::System.Decimal total)
        {
            OrderEntry orderEntry = new OrderEntry();

            orderEntry.ID        = id;
            orderEntry.Customer  = customer;
            orderEntry.OrderDate = orderDate;
            orderEntry.Subtotal  = subtotal;
            orderEntry.SalesTax  = salesTax;
            orderEntry.Total     = total;
            return(orderEntry);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderEntries EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderEntries(OrderEntry orderEntry)
 {
     base.AddObject("OrderEntries", orderEntry);
 }