隐藏

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

发布:2023/12/7 15:37:50作者:大数据 来源:大数据 浏览次数:531

目录

  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
声明:本站内容来源于原创和互联网,尊重作者版权,转载请注明来源网址,欢迎收藏,谢谢!