public static IList <IDbDataParameter> AddParameters(this ITuple tuple, IDbCommand dbCommand) { List <IDbDataParameter> dbParameters = new List <IDbDataParameter>(); foreach (IParameter parameter in tuple.AsParameters()) { IDbDataParameter dbParameter = dbCommand.CreateParameter(); parameter.Build(dbParameter); dbParameters.Add(dbParameter); dbCommand.Parameters.Add(dbParameter); } return(dbParameters); }