private ConfigParams ComposeSettings() { var maxPoolSize = _options.GetAsNullableInteger("max_pool_size"); var connectTimeout = _options.GetAsNullableInteger("connect_timeout"); var connectRetryCount = _options.GetAsNullableInteger("connect_retry_count"); var connectRetryInterval = _options.GetAsNullableInteger("connect_retry_interval"); var multipleActiveResultSets = _options.GetAsNullableBoolean("multiple_active_result_sets"); ConfigParams settings = new ConfigParams(); if (maxPoolSize.HasValue) { settings["Max Pool Size"] = maxPoolSize.Value.ToString(); } if (connectTimeout.HasValue) { settings["Connection Timeout"] = connectTimeout.Value.ToString(); } if (connectRetryCount.HasValue) { settings["ConnectRetryCount"] = connectRetryCount.Value.ToString(); } if (connectRetryInterval.HasValue) { settings["ConnectRetryInterval"] = connectRetryInterval.Value.ToString(); } if (multipleActiveResultSets.HasValue) { settings["MultipleActiveResultSets"] = multipleActiveResultSets.Value.ToString(); } return(settings); }