Exemplo n.º 1
0
        internal IList <BindingReplacement> BuildPropertyBindingReplacements(BaseTag tag)
        {
            if (tag == null)
            {
                throw new ArgumentNullException("tag");
            }

            return(InlineParameterMapParser.BuildBindingReplacements(_bindings, new StringBuilder(tag.Property)));
        }
Exemplo n.º 2
0
        internal IList <BindingReplacement> BuildTextBindingReplacements(SqlText tag)
        {
            if (tag == null)
            {
                throw new ArgumentNullException("tag");
            }

            return(InlineParameterMapParser.BuildBindingReplacements(_bindings, new StringBuilder(tag.Text)));
        }
Exemplo n.º 3
0
        internal IList <BindingReplacement> BuildContentBindingReplacements(StringBuilder bodyContent)
        {
            if (bodyContent == null)
            {
                throw new ArgumentNullException("bodyContent");
            }

            return(InlineParameterMapParser.BuildBindingReplacements(_bindings, bodyContent));
        }
Exemplo n.º 4
0
        internal void ReplaceParameterIteratePropertiesAndVariables(SqlText sqlText)
        {
            if (sqlText.Parameters != null)
            {
                foreach (var parameter in sqlText.Parameters)
                {
                    var parameterBindingReplacements = InlineParameterMapParser.BuildBindingReplacements(_bindings, new StringBuilder(parameter.PropertyName));

                    foreach (var replacement in parameterBindingReplacements)
                    {
                        parameter.ReplaceBindingName(replacement);
                    }

                    parameter.ApplyIteratePropertyReferenceHandling(this, sqlText);
                }
            }
        }