Exemplo n.º 1
0
 private void AddQueryParameters(List <QueryParameter> queryParams)
 {
     if (this.m_queryParameters != null)
     {
         foreach (IDataParameter queryParameter in this.m_queryParameters)
         {
             if (queryParameter != null)
             {
                 IDataMultiValueParameter dataMultiValueParameter = queryParameter as IDataMultiValueParameter;
                 if (dataMultiValueParameter != null)
                 {
                     DataProcessingMetrics.AddMultiValueQueryParameter(queryParams, dataMultiValueParameter);
                 }
                 else
                 {
                     queryParams.Add(DataProcessingMetrics.CreateAdditionalInfoQueryParameter(queryParameter.ParameterName, queryParameter.Value));
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
 private void AddQueryParameters(List <QueryParameter> queryParams)
 {
     if (m_queryParameters == null)
     {
         return;
     }
     foreach (IDataParameter queryParameter in m_queryParameters)
     {
         if (queryParameter != null)
         {
             IDataMultiValueParameter dataMultiValueParameter = queryParameter as IDataMultiValueParameter;
             if (dataMultiValueParameter != null)
             {
                 AddMultiValueQueryParameter(queryParams, dataMultiValueParameter);
             }
             else
             {
                 queryParams.Add(CreateAdditionalInfoQueryParameter(queryParameter.ParameterName, queryParameter.Value));
             }
         }
     }
 }
Exemplo n.º 3
0
 private static void AddMultiValueQueryParameter(List <QueryParameter> queryParams, IDataMultiValueParameter parameter)
 {
     if (parameter.Values != null)
     {
         object[] values = parameter.Values;
         foreach (object parameterValue in values)
         {
             queryParams.Add(DataProcessingMetrics.CreateAdditionalInfoQueryParameter(parameter.ParameterName, parameterValue));
         }
     }
 }