In an attempt to decouple the implementation of DbContext layer from the Client project, I tried to put all the codes that performed DB connection and query in a separate Li