/// <summary> /// Create a new Product object. /// </summary> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="storeGuid">Initial value of the StoreGuid property.</param> /// <param name="taxClassGuid">Initial value of the TaxClassGuid property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="fullfillmentType">Initial value of the FullfillmentType property.</param> /// <param name="weight">Initial value of the Weight property.</param> /// <param name="quantityOnHand">Initial value of the QuantityOnHand property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Product CreateProduct(global::System.Guid guid, global::System.Guid storeGuid, global::System.Guid taxClassGuid, global::System.Byte status, global::System.Byte fullfillmentType, global::System.Decimal weight, global::System.Int32 quantityOnHand, global::System.DateTime created, global::System.Guid createdBy, global::System.Boolean isDeleted) { Product product = new Product(); product.Guid = guid; product.StoreGuid = storeGuid; product.TaxClassGuid = taxClassGuid; product.Status = status; product.FullfillmentType = fullfillmentType; product.Weight = weight; product.QuantityOnHand = quantityOnHand; product.Created = created; product.CreatedBy = createdBy; product.IsDeleted = isDeleted; return product; }
/// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Product product) { base.AddObject("Products", product); }