/// <summary>
 /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProducts(Product product)
 {
     base.AddObject("Products", product);
 }
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="productCode">Initial value of the ProductCode property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="productCategory_Product">Initial value of the ProductCategory_Product property.</param>
 /// <param name="reorderLevelFlag">Initial value of the ReorderLevelFlag property.</param>
 /// <param name="discontinued">Initial value of the Discontinued property.</param>
 /// <param name="product_ProductGroup">Initial value of the Product_ProductGroup property.</param>
 /// <param name="product_Location">Initial value of the Product_Location property.</param>
 /// <param name="product_UnitOfMeasure">Initial value of the Product_UnitOfMeasure property.</param>
 /// <param name="agingControlFlag">Initial value of the AgingControlFlag property.</param>
 /// <param name="lotControlFlag">Initial value of the LotControlFlag property.</param>
 /// <param name="lotType">Initial value of the LotType property.</param>
 /// <param name="carryingCostFlag">Initial value of the CarryingCostFlag property.</param>
 /// <param name="productionCostFlag">Initial value of the ProductionCostFlag property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.String productCode, global::System.String productName, global::System.Int32 productCategory_Product, global::System.Boolean reorderLevelFlag, global::System.Boolean discontinued, global::System.Int32 product_ProductGroup, global::System.Int32 product_Location, global::System.Int32 product_UnitOfMeasure, global::System.Boolean agingControlFlag, global::System.Boolean lotControlFlag, global::System.String lotType, global::System.Boolean carryingCostFlag, global::System.Boolean productionCostFlag, global::System.Byte[] rowVersion)
 {
     Product product = new Product();
     product.Id = id;
     product.ProductCode = productCode;
     product.ProductName = productName;
     product.ProductCategory_Product = productCategory_Product;
     product.ReorderLevelFlag = reorderLevelFlag;
     product.Discontinued = discontinued;
     product.Product_ProductGroup = product_ProductGroup;
     product.Product_Location = product_Location;
     product.Product_UnitOfMeasure = product_UnitOfMeasure;
     product.AgingControlFlag = agingControlFlag;
     product.LotControlFlag = lotControlFlag;
     product.LotType = lotType;
     product.CarryingCostFlag = carryingCostFlag;
     product.ProductionCostFlag = productionCostFlag;
     product.RowVersion = rowVersion;
     return product;
 }
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="productCategory_Product">Initial value of the ProductCategory_Product property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="reorderLevel">Initial value of the ReorderLevel property.</param>
 /// <param name="discontinued">Initial value of the Discontinued property.</param>
 /// <param name="leadTime">Initial value of the LeadTime property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.String productName, global::System.Int32 productCategory_Product, global::System.Decimal unitPrice, global::System.Int16 reorderLevel, global::System.Boolean discontinued, global::System.String leadTime, global::System.Byte[] rowVersion)
 {
     Product product = new Product();
     product.Id = id;
     product.ProductName = productName;
     product.ProductCategory_Product = productCategory_Product;
     product.UnitPrice = unitPrice;
     product.ReorderLevel = reorderLevel;
     product.Discontinued = discontinued;
     product.LeadTime = leadTime;
     product.RowVersion = rowVersion;
     return product;
 }
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 /// <param name="validFrom">Initial value of the ValidFrom property.</param>
 /// <param name="validUntil">Initial value of the ValidUntil property.</param>
 /// <param name="endOfSale">Initial value of the EndOfSale property.</param>
 /// <param name="endOfLife">Initial value of the EndOfLife 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 Product CreateProduct(global::System.String type, global::System.String version, global::System.DateTimeOffset validFrom, global::System.DateTimeOffset validUntil, global::System.DateTimeOffset endOfSale, global::System.DateTimeOffset endOfLife, 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)
 {
     Product product = new Product();
     product.Type = type;
     product.Version = version;
     product.ValidFrom = validFrom;
     product.ValidUntil = validUntil;
     product.EndOfSale = endOfSale;
     product.EndOfLife = endOfLife;
     product.Id = id;
     product.Tid = tid;
     product.Name = name;
     product.CreatedBy = createdBy;
     product.ModifiedBy = modifiedBy;
     product.Created = created;
     product.Modified = modified;
     return product;
 }
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="lenght">Initial value of the Lenght property.</param>
 /// <param name="product_ProductGroup">Initial value of the Product_ProductGroup property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String name, global::System.String lenght, global::System.Int32 product_ProductGroup)
 {
     Product product = new Product();
     product.Id = id;
     product.RowVersion = rowVersion;
     product.Name = name;
     product.Lenght = lenght;
     product.Product_ProductGroup = product_ProductGroup;
     return product;
 }