Class CartFilter
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Filter class used in SerializableCartDB to filter which carts to retrieve.
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class CartFilter : OrderSearchFilter
Constructors
CartFilter()
Creates new instance of CartFilter.
Declaration
public CartFilter()
CartFilter(Guid, String)
Creates new instance of CartFilter with customerId and name.
Declaration
public CartFilter(Guid customerId, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | customerId | The customer identifier. |
| System.String | name | The name of cart. |
Properties
CartId
Specifies that only cart which has specified identifier should be returned.
Declaration
public int CartId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ExcludedCartNames
Gets or sets the cart names that will be excluded when searching for carts.
Declaration
public IEnumerable<string> ExcludedCartNames { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
Name
Specifies that only carts which has specified name should be returned.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
This option should not be used without CustomerId option.