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)); } } }
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)); } } } }
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)); } } } } }