public static bool IsFactorySupported(string connectionString) { var factory = GetProviderFactory(connectionString); return(factory == null || SupportedFactories.Any(pair => pair.Value.IsInstanceOfType(factory))); }
public static bool IsFactorySupported(Type connectionProviderType) { return(SupportedFactories.Any(pair => pair.Key.IsAssignableFrom(connectionProviderType))); }