/// <summary> /// Deprecated Method for adding a new object to the ProductVendors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductVendors(ProductVendor productVendor) { base.AddObject("ProductVendors", productVendor); }
/// <summary> /// Create a new ProductVendor object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="vendorID">Initial value of the VendorID property.</param> /// <param name="averageLeadTime">Initial value of the AverageLeadTime property.</param> /// <param name="standardPrice">Initial value of the StandardPrice property.</param> /// <param name="minOrderQty">Initial value of the MinOrderQty property.</param> /// <param name="maxOrderQty">Initial value of the MaxOrderQty property.</param> /// <param name="unitMeasureCode">Initial value of the UnitMeasureCode property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static ProductVendor CreateProductVendor(global::System.Int32 productID, global::System.Int32 vendorID, global::System.Int32 averageLeadTime, global::System.Decimal standardPrice, global::System.Int32 minOrderQty, global::System.Int32 maxOrderQty, global::System.String unitMeasureCode, global::System.DateTime modifiedDate) { ProductVendor productVendor = new ProductVendor(); productVendor.ProductID = productID; productVendor.VendorID = vendorID; productVendor.AverageLeadTime = averageLeadTime; productVendor.StandardPrice = standardPrice; productVendor.MinOrderQty = minOrderQty; productVendor.MaxOrderQty = maxOrderQty; productVendor.UnitMeasureCode = unitMeasureCode; productVendor.ModifiedDate = modifiedDate; return productVendor; }