internal IList <BindingReplacement> BuildPropertyBindingReplacements(BaseTag tag) { if (tag == null) { throw new ArgumentNullException("tag"); } return(InlineParameterMapParser.BuildBindingReplacements(_bindings, new StringBuilder(tag.Property))); }
internal IList <BindingReplacement> BuildTextBindingReplacements(SqlText tag) { if (tag == null) { throw new ArgumentNullException("tag"); } return(InlineParameterMapParser.BuildBindingReplacements(_bindings, new StringBuilder(tag.Text))); }
internal IList <BindingReplacement> BuildContentBindingReplacements(StringBuilder bodyContent) { if (bodyContent == null) { throw new ArgumentNullException("bodyContent"); } return(InlineParameterMapParser.BuildBindingReplacements(_bindings, bodyContent)); }
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); } } }