/// <summary> /// Create a new OrderDetailEntity object. /// </summary> /// <param name="orderId">Initial value of the OrderId property.</param> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="discount">Initial value of the Discount property.</param> /// <param name="version">Initial value of the Version property.</param> public static OrderDetailEntity CreateOrderDetailEntity(global::System.Int32 orderId, global::System.Int32 productId, global::System.Decimal unitPrice, global::System.Int32 quantity, global::System.Double discount, global::System.Byte[] version) { OrderDetailEntity orderDetailEntity = new OrderDetailEntity(); orderDetailEntity.OrderId = orderId; orderDetailEntity.ProductId = productId; orderDetailEntity.UnitPrice = unitPrice; orderDetailEntity.Quantity = quantity; orderDetailEntity.Discount = discount; orderDetailEntity.Version = version; return(orderDetailEntity); }
/// <summary> /// Deprecated Method for adding a new object to the OrderDetailEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderDetailEntities(OrderDetailEntity orderDetailEntity) { base.AddObject("OrderDetailEntities", orderDetailEntity); }