Ejemplo n.º 1
0
        public static bool IsFactorySupported(string connectionString)
        {
            var factory = GetProviderFactory(connectionString);

            return(factory == null || SupportedFactories.Any(pair => pair.Value.IsInstanceOfType(factory)));
        }
Ejemplo n.º 2
0
 public static bool IsFactorySupported(Type connectionProviderType)
 {
     return(SupportedFactories.Any(pair => pair.Key.IsAssignableFrom(connectionProviderType)));
 }