1.要实现仓储
a.要实现仓储,首先要定义仓储接口。在领域层定义仓储接口,IProductRepository.cs。
public interface IProductRepository { void CreateProduct<T>(T productspu) where T:class,IAggregationRoot; }
1.要实现仓储
a.要实现仓储,首先要定义仓储接口。在领域层定义仓储接口,IProductRepository.cs。
public interface IProductRepository { void CreateProduct<T>(T productspu) where T:class,IAggregationRoot; }