Beispiel #1
0
        public static bool IsFactorySupported(string connectionString)
        {
            var factory = GetProviderFactory(connectionString);

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