Northwind.EntityFramework.ModelFirst.OrderDetails.CreateOrderDetails C# (CSharp) Method

CreateOrderDetails() public static method

Create a new OrderDetails object.
public static CreateOrderDetails ( global orderID, global productID, global unitPrice, global quantity, global discount ) : OrderDetails
orderID global Initial value of the OrderID property.
productID global Initial value of the ProductID property.
unitPrice global Initial value of the UnitPrice property.
quantity global Initial value of the Quantity property.
discount global Initial value of the Discount property.
return OrderDetails
        public static OrderDetails CreateOrderDetails(global::System.Int32 orderID, global::System.Int32 productID, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
        {
            OrderDetails orderDetails = new OrderDetails();
            orderDetails.OrderID = orderID;
            orderDetails.ProductID = productID;
            orderDetails.UnitPrice = unitPrice;
            orderDetails.Quantity = quantity;
            orderDetails.Discount = discount;
            return orderDetails;
        }