Partager via


InventoryQuantityDeltasDataSet

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The InventoryQuantityDeltasDataSet class contains information about the properties of the inventory quantity deltas. You can access the DataRowCollection of the dataset’s data table by using the InventoryQuantityDeltas property. You can access each row in the collection by using the properties of the InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta class.

The following table contains the strongly typed properties in this dataset.

Property

Description

DateCreated

Gets a DateTime value that specifies when the inventory quantity delta was created.

InventoryCatalogName

Gets or sets a string that contains the name of the inventory catalog.

Oid

Gets an integer value that is for internal use only.

ProductCatalogName

Gets or sets the name of the product catalog that contains the product or variant.

ProductId

Gets or sets a string that contains the identifier of the product.

Quantity

Gets or sets an integer value that specifies the amount by which to increment or decrement the inventory.

VariantId

Gets or sets a string that contains the identifier of the variant.

Constraints

The InventoryQuantityDeltasDataSet class does not define any constraints.

Using the InventoryQuantityDeltasDataSet Class

The following example demonstrates how to access the properties of the InventoryQuantityDeltasDataSet class.

public static void UseDataset(CatalogContext catalogContext)
{
    // Iterate through the InventoryQuantityDeltasDataset in the Catalog 
    // System to access attributes.
    InventoryQuantityDeltasDataSet inventoryDeltas = catalogContext.InventoryContext.GetQuantityDeltas().DataSet;
    int count = inventoryDeltas.InventoryQuantityDeltas.Count;
    for (int deltaIndex = 0; deltaIndex < count; deltaIndex++)
    {
        string inventoryCatalogName = inventoryDeltas.InventoryQuantityDeltas[deltaIndex].InventoryCatalogName;
        string productId = inventoryDeltas.InventoryQuantityDeltas[deltaIndex].ProductId;       
        int quantity = inventoryDeltas.InventoryQuantityDeltas[deltaIndex].Quantity;
    }
}

The InventoryQuantityDeltasDataSetSchema Class

The InventoryQuantityDeltasDataSetSchema class provides constants for all the built-in columns in the dataset and defines all the associated methods. The following table contains the associated methods for this class.

Method

Description

IsReadOnlyColumn

Returns true if the columnName in the dataset cannot be updated, or false if the columnName in the dataset can be updated.

IsBuiltInColumn

Returns true if the columnName is a built-in column in the dataset, or false if the columnName is a user-defined property.

See Also

Other Resources

Typed Datasets in the Inventory System

Typed Datasets in the Catalog System