/// <summary> /// Create a new Orders_OrderToItem object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="orderId">Initial value of the OrderId property.</param> /// <param name="itemId">Initial value of the ItemId property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="singleItemPrice">Initial value of the SingleItemPrice property.</param> public static Orders_OrderToItem CreateOrders_OrderToItem(global::System.Int32 id, global::System.Int32 orderId, global::System.Int32 itemId, global::System.Decimal quantity, global::System.Decimal singleItemPrice) { Orders_OrderToItem orders_OrderToItem = new Orders_OrderToItem(); orders_OrderToItem.Id = id; orders_OrderToItem.OrderId = orderId; orders_OrderToItem.ItemId = itemId; orders_OrderToItem.Quantity = quantity; orders_OrderToItem.SingleItemPrice = singleItemPrice; return orders_OrderToItem; }
/// <summary> /// Deprecated Method for adding a new object to the Orders_OrderToItem EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders_OrderToItem(Orders_OrderToItem orders_OrderToItem) { base.AddObject("Orders_OrderToItem", orders_OrderToItem); }