DDD实战4 实现产品模块的功能

1.要实现仓储

a.要实现仓储,首先要定义仓储接口。在领域层定义仓储接口,IProductRepository.cs。

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

猜你喜欢

转载自www.cnblogs.com/wholeworld/p/8862568.html
ddd
今日推荐