Class SerializableCartDB

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Represents database access class to manipulate SerializableCart.

Inheritance
System.Object
SerializableCartDB
Implements
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 SerializableCartDB : ICartSearch

Constructors

SerializableCartDB(IObjectSerializerFactory, IConnectionStringHandler)

Initializes a new instance of the SerializableCartDB class.

Declaration
public SerializableCartDB(IObjectSerializerFactory objectSerializerFactory, IConnectionStringHandler connectionHandler)
Parameters
Type Name Description
EPiServer.Framework.Serialization.IObjectSerializerFactory objectSerializerFactory

The object serializer factory.

IConnectionStringHandler connectionHandler

The connection string handler.

Methods

Delete(ICart)

Deletes a SerializableCart.

Declaration
public void Delete(ICart cart)
Parameters
Type Name Description
ICart cart

The cart to delete.

FindCarts(CartFilter)

Finds SerializableCarts by a given CartFilter.

Declaration
public virtual IEnumerable<SerializableCart> FindCarts(CartFilter cartFilter)
Parameters
Type Name Description
CartFilter cartFilter

The filter options when finding cart.

Returns
Type Description
System.Collections.Generic.IEnumerable<SerializableCart>

The collection of SerializableCart.

FindCarts(Nullable<DateTime>, Nullable<DateTime>, String, Int32, Int32, out Int32)

Finds ICart by a set of parameters.

Declaration
public IEnumerable<ICart> FindCarts(DateTime? createdFrom, DateTime? createdTo, string marketId, int startingRecord, int recordsToRetrieve, out int totalRecords)
Parameters
Type Name Description
System.Nullable<System.DateTime> createdFrom

The time specified that returned carts were created after.

System.Nullable<System.DateTime> createdTo

The time specified that returned carts were created before.

System.String marketId

The market specified that only carts created in the market should be returned.

System.Int32 startingRecord

The starting record to retrieve.

System.Int32 recordsToRetrieve

The number of records to retrieve.

System.Int32 totalRecords

The total records returned.

Returns
Type Description
System.Collections.Generic.IEnumerable<ICart>

A collection of ICart.

Load(CartFilter)

Loads SerializableCarts by a given CartFilter.

Declaration
public IEnumerable<SerializableCart> Load(CartFilter cartFilter)
Parameters
Type Name Description
CartFilter cartFilter

The filter options when loading serializable cart.

Returns
Type Description
System.Collections.Generic.IEnumerable<SerializableCart>

The collection of SerializableCart.

Save(SerializableCart)

Saves a SerializableCart to the database. The cart will be stored in SerializableCart table.

Declaration
public int Save(SerializableCart cart)
Parameters
Type Name Description
SerializableCart cart

The SerializableCart needs to be saved.

Returns
Type Description
System.Int32

The cart identifier.

Implements