Creating a Repository Pattern without an ORM https://www.danylkoweb.com/Blog/creating-a-repository-pattern-without-an-orm