Database Service

A service which handles storing of the Basket in the database

This feature requires a paid license

The database service is what handles the insertion, updating, and clearing of the UmbCheckout Basket within the database.

You can access the database service by injecting IDatabaseService which can be found within the namespace UmbCheckout.Core.Addons.Interfaces

UpdateBasket

Updates the stored Basket

Parameters:

NameDetail

sessionId

The session to retrieve the Basket for

basket

The Basket to be stored

Task<Basket> UpdateBasket(string sessionId, Basket basket);

DeleteBasket

Deleted the stored Basket

Parameters:

NameDetail

sessionId

The session to delete the Basket for

Task DeleteBasket(string sessionId);

DeleteBaskets

Deleted all of the stored Baskets older than the specified days

Parameters:

NameDetail

expiryDateTime

The days to delete from

Task DeleteBaskets(DateTime expiryDateTime);

Last updated