예제 #1
0
        string ParameterInfo(OracleParameterCollection oracleParameterCollection)
        {
            var parameterInfoBuilder = new StringBuilder();

            parameterInfoBuilder.Append(GenericConstants.CHR_SPACE);
            parameterInfoBuilder.Append(GenericConstants.BRACKET_CURLYOPEN);
            parameterInfoBuilder.Append(GenericConstants.CHR_SPACE);

            var empEnumerator = oracleParameterCollection.GetEnumerator();

            while (empEnumerator.MoveNext())
            {
                var parameter = (OracleParameter)empEnumerator.Current;
                parameterInfoBuilder.Append(GenericConstants.LOG_PARAMETERNAME);
                parameterInfoBuilder.Append(GenericConstants.CHR_SPACE);
                parameterInfoBuilder.Append(parameter.ParameterName);
                parameterInfoBuilder.Append(GenericConstants.CHR_COMMA);
                parameterInfoBuilder.Append(GenericConstants.LOG_PARAMETERVALUE);
                parameterInfoBuilder.Append(parameter.Value);
                parameterInfoBuilder.Append(GenericConstants.CHR_SPACE);
            }

            parameterInfoBuilder.Append(GenericConstants.CHR_SPACE);
            parameterInfoBuilder.Append(GenericConstants.BRACKET_CURLYCLOSED);

            return(parameterInfoBuilder.ToString());
        }