Episode 029 – Generic Repository & Repository Pattern


  • What
    • What is a generic repository
  • Where
    • Where in the code would I use the generic repository
  • Why
    • Why would I even bother using a generic repository
  • When
    • When is/isn’t a generic repository appropriate
  • Who
    • Who should be using a generic repository


– Repository Pattern
– Generics
– EF
– Unit of work
– How to avoid leaky abstractions?
– Lazy vs Eager loading
– Performance – That will never work in production!!


Introducing the CachedRepository Pattern
Implementing the infrastructure persistence layer with Entity Framework Core
Generic Repository & Dependency Injection with .NET Core
Practical Test-Driven Development using C# 7


“Tempting Time” by Animals As Leaders used with permissions – All Rights Reserved


Subscribe now! Never miss a post, subscribe to The 6 Figure Developer Podcast!
Are you interested in being a guest on The 6 Figure Developer Podcast? Click here to check availability!


A Microsoft MVP, John has been a professional developer since 1999. He has focused primarily on web technologies and has experience with everything from PHP to C# to ReactJS to SignalR. Clean code and professionalism are particularly important to him, as well as mentoring and teaching others what he has learned along the way.

Please Consider Sharing This Post: