.NetCore 3.1 EF Core 仓储模式+工作单元

目录

  1. IRepository
  2. Repository
  3. IService
  4. Service
  5. Controller

IRepository

  1. IBaseRepository

     

  1. IUnitOfWork

     

  1. IStudentRepository

     

Repository

  1. BaseRepository

     

  1. UnitOfWork

     

  1. StudentRepository

     

IService

  1. IBaseService

     

  1. IStudentService

     

Service

  1. BaseService

  1. StudentService

Controller

  1. StudentController


     

相关资料

  1. 参考博文--->老张的哲学
  2. demo
  3. https://docs.microsoft.com/zh-cn/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/infrastructure-persistence-layer-implementation-entity-framework-core