public IHttpActionResult Get([FromUri] Payment payment)
List<SqlDataRecord>
private SqlParameter CreateTableGuidParameter(string name, Guid[] ids)
{
var tableParam = new SqlParameter(name, SqlDbType.Structured);
tableParam.TypeName = "[dbo].[TableUniqueIdentifierType]";
tableParam.Direction = ParameterDirection.Input;
var rows = new List<SqlDataRecord>();
var sqlMetaData = new SqlMetaData("Id", SqlDbType.UniqueIdentifier);
foreach (var id in ids)
{
var row = new SqlDataRecord(sqlMetaData);
row.SetValues(id);
rows.Add(row);
}
tableParam.Value = rows;
return tableParam;
}
() => senderThread(i0 + i)