コード例 #1
0
        public ParameterContext GetParameterContext()
        {
            var result = _originalParameterContext.CloneParameterContext();

            foreach (var replaced in _replacedIndexAndParameters)
            {
                result.ReplaceParameterValue(replaced.Key, replaced.Value);
            }
            foreach (var added in _addedIndexAndParameters.Reverse())
            {
                throw new NotImplementedException();
                //if (added.Key > result.Count)
                //{
                //    result.AddAll(added.Value);
                //}
                //else
                //{
                //    result.InsertRange(added.Key, added.Value);
                //}
            }
            foreach (var removeParameterName in _removeParameterNames)
            {
                result.RemoveDbParameter(removeParameterName);
            }
            return(result);
        }
コード例 #2
0
 protected override ParameterContext CloneParameters(ParameterContext parameterContext)
 {
     return(parameterContext.CloneParameterContext());
 }