DDD combat 4 realize the function of product module

1. To realize warehousing

a. To implement warehousing, first define the warehousing interface. Define the repository interface in the domain layer, IProductRepository.cs.

public interface IProductRepository
    {
        void CreateProduct<T>(T productspu) where T:class,IAggregationRoot;
    }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324516985&siteId=291194637