Repository vs Service pattern in DAL: EF and Dapper

后端 未结 4 877
情深已故
情深已故 2021-02-01 09:18

I\'m working on project and I need to design the DAL. I will be using Entity Framework for most of the project and Dapper for some performance-sensitiv

4条回答
  •  孤独总比滥情好
    2021-02-01 09:34

    Check out an EF + Dapper Hybrid Implementation that Bradley Braithwaite has created.

    GitHub Repo: https://github.com/bbraithwaite/HybridOrm

    Accompanying Blog Post: ORMs: Don't Reinvent the Wheel

    In terms of structuring the Project Layers to avoid "bleeding", here's how he did it.

    Project Layout

    From Blog Post: Creating Data Repository Using Dapper

提交回复
热议问题