using System.Data.SqlClient;
public static void Main()
string sql = "INSERT INTO Customers (CustomerName) Values (@CustomerName);";
using (var connection = new SqlConnection(FiddleHelper.GetConnectionStringSqlServerW3Schools()))
var affectedRows = connection.Execute(sql,
new {CustomerName = "John"},
new {CustomerName = "Andy"},
new {CustomerName = "Allan"}
Console.WriteLine(affectedRows);