public static T GetByInterface <T>(this IDbContextCollection collection) where T : class, IDbContext { return(GetDbContextFromCollection(collection, typeof(T)) as T); }
protected abstract DbContext GetDbContext(IDbContextCollection dbContextCollection);