/// <summary> /// Adds any addition parameters. /// </summary> /// <param name="command">The command.</param> private bool AddAdditionParameters(IDbCommand command) { bool haveAdditions = Additions.Count != 0; if (haveAdditions) { foreach (var pair in Additions.OrderBy(kvp => kvp.Key)) { string typeName = GetTypeName(pair.Key); command.AddTableValuedParameter(string.Format("@merge{0}", typeName), pair.Value); } } return(haveAdditions); }