using System.Data.SqlClient;
public static void Main()
using var connection = new SqlConnection(FiddleHelper.GetConnectionStringSqlServerW3Schools());
foreach(var (name, unit, price) in connection.Read<string, string, decimal>("SELECT TOP 10 ProductName, Unit, Price FROM Products"))
Console.WriteLine($"{name.Trim()} has price {price} per {unit}");