/// <summary> /// Create a new OrderItem object. /// </summary> /// <param name="orderId">Initial value of the OrderId property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="version">Initial value of the Version property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="parameters">Initial value of the Parameters property.</param> /// <param name="id">Initial value of the Id property.</param> /// <param name="tid">Initial value of the Tid property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="modified">Initial value of the Modified property.</param> public static OrderItem CreateOrderItem(global::System.Int64 orderId, global::System.Int32 quantity, global::System.String version, global::System.String type, global::System.String parameters, global::System.Int64 id, global::System.String tid, global::System.String name, global::System.String createdBy, global::System.String modifiedBy, global::System.DateTimeOffset created, global::System.DateTimeOffset modified) { OrderItem orderItem = new OrderItem(); orderItem.OrderId = orderId; orderItem.Quantity = quantity; orderItem.Version = version; orderItem.Type = type; orderItem.Parameters = parameters; orderItem.Id = id; orderItem.Tid = tid; orderItem.Name = name; orderItem.CreatedBy = createdBy; orderItem.ModifiedBy = modifiedBy; orderItem.Created = created; orderItem.Modified = modified; return orderItem; }
/// <summary> /// Deprecated Method for adding a new object to the OrderItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderItems(OrderItem orderItem) { base.AddObject("OrderItems", orderItem); }