Database Service
A service which handles storing of the Basket in the database
Last updated
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
Updates the stored Basket
Parameters:
Task<Basket> UpdateBasket(string sessionId, Basket basket);Deleted the stored Basket
Parameters:
sessionId
The session to delete the Basket for
Task DeleteBasket(string sessionId);Deleted all of the stored Baskets older than the specified days
Parameters:
expiryDateTime
The days to delete from
Last updated
Task DeleteBaskets(DateTime expiryDateTime);