December 2019
Intermediate to advanced
510 pages
11h 33m
English
The domain model of the cart service represents the entities that we require to describe the cart session of a user. Specifically, the domain model of the cart service implements three different entity classes: Cart, CartItem, and CartUser. Like the catalog service, all the entities are stored in the Cart.Domain project, which will be referred to by the Cart.Infrastructure and Cart.API projects.
Let's start with the CartSession class, which represents a single cart session:
using System;using System.Collections.Generic;namespace Cart.Domain.Entities{ public class CartSession { public string Id { get; set; } public IList<CartItem> Items { get; set; } public CartUser User { get; set; } public DateTimeOffset ...
Read now
Unlock full access