/// <summary> /// Deprecated Method for adding a new object to the OrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderDetails(OrderDetail orderDetail) { base.AddObject("OrderDetails", orderDetail); }
/// <summary> /// Create a new OrderDetail object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="batchID">Initial value of the BatchID property.</param> /// <param name="status">Initial value of the Status property.</param> public static OrderDetail CreateOrderDetail(global::System.Int32 id, global::System.Int32 orderID, global::System.Int32 batchID, global::System.Boolean status) { OrderDetail orderDetail = new OrderDetail(); orderDetail.ID = id; orderDetail.OrderID = orderID; orderDetail.BatchID = batchID; orderDetail.Status = status; return orderDetail; }