Esempio n. 1
0
        private static IEnumerable <IDbDependencyResolver> ExplodeRootDepencendyResolver(
            IDbDependencyResolver rootDependencyResolver)
        {
            var defaultProviderResolvers = (IDbDependencyResolver)rootDependencyResolver.GetPrivateFieldValue("_defaultProviderResolvers");
            var defaultResolvers         = (IDbDependencyResolver)rootDependencyResolver.GetPrivateFieldValue("_defaultResolvers");
            var resolvers = (IDbDependencyResolver)rootDependencyResolver.GetPrivateFieldValue("_resolvers");

            return(GetInternalResolvers(defaultProviderResolvers)
                   .Concat(GetInternalResolvers(defaultResolvers))
                   .Concat(GetInternalResolvers(resolvers)));
        }