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

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