Esempio n. 1
0
		private QueryParameters GetFilteredQueryParameters(QueryParameters queryParameters, QueryTranslator translator)
		{
			QueryParameters filteredQueryParameters = queryParameters;
			IDictionary namedParameters = new Hashtable(queryParameters.NamedParameters);
			filteredQueryParameters.NamedParameters.Clear();
			foreach (string paramName in translator.GetParameterTranslations().GetNamedParameterNames())
			{
				if (namedParameters.Contains(paramName))
				{
					filteredQueryParameters.NamedParameters.Add(paramName, namedParameters[paramName]);
				}
			}
			return filteredQueryParameters;
		}