Exemple #1
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));
         }
     }
 }
Exemple #2
0
 private void AddStartAtParameters(List <QueryParameter> queryParams)
 {
     if (this.m_startAtParameters != null && this.m_startAtParameters.Length != 0)
     {
         IDataParameter[] startAtParameters = this.m_startAtParameters;
         foreach (IDataParameter dataParameter in startAtParameters)
         {
             if (dataParameter != null)
             {
                 queryParams.Add(DataProcessingMetrics.CreateAdditionalInfoQueryParameter(dataParameter.ParameterName, dataParameter.Value));
             }
         }
     }
 }
Exemple #3
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));
                 }
             }
         }
     }
 }