public static IConnectionPool CreateConnectionPool(DatabaseConnectionContext context) { if (context == null) { throw new ArgumentNullException("context"); } IDbFactory fac = GetDbFactory(context.ConnectionSettings); if (fac != null) { return(fac.CreateConnectionPool(context)); } return(null); }