Creating A Generic Repository in .NET Core w/ Entity Framework Core 2


Details
We will meet Tuesday, May 1st at Bank of the Ozark's Innovation Lab. Doors will open at 6:30pm and the presentations will begin sharply at 7:00 pm. Along with a great presentation, we'll have food and raffle prizes. Be sure to RSVP so we know how much food is needed.
Creating A Generic Repository in .NET Core w/ Entity Framework Core 2
Are you using Entity Framework or some other ORM? Do you have a direct dependency on that ORM? Maybe you've created one or more repositories to abstract away all of the EF stuff. We will explore the Repository pattern and then create our own version of it that is fully compatible with Entity Framework Core 2. While we are at it we will talk about Generics in C#, hopefully demystifying covariance and contravariance. We will then configure the application to use a single implementation Repository to service all of our EF request. Lastly, we will show how using the suggested repository pattern can help when doing TDD (Test Driven Development).
Clayton Hunt
Clayton has been programming professionally since 2005 doing mostly web development with an emphasis on JavaScript and C#. He has a focus Software Craftsmanship and is a signatory of both the Agile Manifesto and the Software Craftsmanship manifesto. He believes that through short iterations and the careful gathering of requirements that we can deliver the highest quality and the most value in the shortest time. He enjoys learning and encouraging other to continuously improve themselves.
St Pete .NET Meetup
Follow @StPeteDotNET ( https://twitter.com/stpetedotnet ) on Twitter!
Subscribe to our Youtube channel ( https://www.youtube.com/channel/UC_kdG2Reanc7Bo3K0XOYZ-g ).

Creating A Generic Repository in .NET Core w/ Entity Framework Core 2