I have DbContext connecting to my data base.The context is configured with dependency injection in the startup.
public static class MyPhotoServiceCollectionExt