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.

Inheritance
System.Object
CartFilter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order.Internal.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class CartFilter

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

CreatedFrom

Specifies the time that returned carts were created after.

Declaration
public DateTime? CreatedFrom { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

CreatedTo

Specifies the time that returned carts were created before.

Declaration
public DateTime? CreatedTo { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

CustomerId

Specifies that only carts created by specified customer should be returned.

Declaration
public Guid CustomerId { get; set; }
Property Value
Type Description
System.Guid

MarketId

Specified that only carts created in specified market should be returned.

Declaration
public string MarketId { get; set; }
Property Value
Type Description
System.String
Remarks

This option should not be used without CustomerId option.

ModifiedFrom

Specifies the time that returned carts were modified after.

Declaration
public DateTime? ModifiedFrom { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

ModifiedTo

Specifies the time that returned carts were modified before.

Declaration
public DateTime? ModifiedTo { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

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.

RecordsToRetrieve

Gets or sets the number of records to retrieve. Default value is 20.

Declaration
public int RecordsToRetrieve { get; set; }
Property Value
Type Description
System.Int32

The records to retrieve.

StartingRecord

Gets or sets the starting record.

Declaration
public int? StartingRecord { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

The starting record.