public IEnumerable <SqlExtensionParam> GetParametersByName(string name) { if (NamedParameters.TryGetValue(name, out var list)) { return(list); } return(Enumerable.Empty <SqlExtensionParam>()); }
public SqlExtensionParam AddParameter(SqlExtensionParam param) { var key = param.Name ?? string.Empty; if (!NamedParameters.TryGetValue(key, out var list)) { list = new List <SqlExtensionParam>(); NamedParameters.Add(key, list); } list.Add(param); return(param); }