using System.Collections.Generic;
public static void Main()
List<ComandaProxy> lista = new List<ComandaProxy>();
lista.Add(new ComandaProxy(1,"209348"));
lista.Add(new ComandaProxy(2,"2093128"));
lista.Add(new ComandaProxy(3,"20933"));
lista.Add(new ComandaProxy(4,"2093248"));
lista.Add(new ComandaProxy(5,"20234"));
string sql = $"INSERT INTO table VALUES {string.Join(", ", lista.Select(x=> $"({x.NumeroComanda}, $proxy${x.NumeroProxy}$proxy$)"))};";
public class ComandaProxy
public int NumeroComanda {get;set;}
public string NumeroProxy {get;set;}
public ComandaProxy(int comanda, string proxy)
this.NumeroComanda = comanda;
this.NumeroProxy = proxy;