Storage.ORM.Product.CreateProduct C# (CSharp) Method

CreateProduct() public static method

Create a new Product object.
public static CreateProduct ( global id, global name, global unit, global wholesalePrice, global shallowWholesalePrice, global retailPrice, global code, global userID ) : Product
id global Initial value of the ID property.
name global Initial value of the Name property.
unit global Initial value of the Unit property.
wholesalePrice global Initial value of the WholesalePrice property.
shallowWholesalePrice global Initial value of the ShallowWholesalePrice property.
retailPrice global Initial value of the RetailPrice property.
code global Initial value of the Code property.
userID global Initial value of the UserID property.
return Product
        public static Product CreateProduct(global::System.Int32 id, global::System.String name, global::System.String unit, global::System.Decimal wholesalePrice, global::System.Decimal shallowWholesalePrice, global::System.Decimal retailPrice, global::System.String code, global::System.Int32 userID)
        {
            Product product = new Product();
            product.ID = id;
            product.Name = name;
            product.Unit = unit;
            product.WholesalePrice = wholesalePrice;
            product.ShallowWholesalePrice = shallowWholesalePrice;
            product.RetailPrice = retailPrice;
            product.Code = code;
            product.UserID = userID;
            return product;
        }