System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.AddParameter C# (CSharp) Method

AddParameter() private method

private AddParameter ( System.Data.Entity.Core.Objects.ELinq.QueryParameterExpression queryParameter ) : void
queryParameter System.Data.Entity.Core.Objects.ELinq.QueryParameterExpression
return void
        private void AddParameter(QueryParameterExpression queryParameter)
        {
            if (null == _parameters)
            {
                _parameters = new List<Tuple<ObjectParameter, QueryParameterExpression>>();
            }
            if (!_parameters.Select(p => p.Item2).Contains(queryParameter))
            {
                var parameter = new ObjectParameter(queryParameter.ParameterReference.ParameterName, queryParameter.Type);
                _parameters.Add(new Tuple<ObjectParameter, QueryParameterExpression>(parameter, queryParameter));
            }
        }