using System.Data.SqlClient;
public Customer(int customerID,string customerName, long x)
CustomerName = customerName;
public int CustomerID {get;set;}
public string CustomerName {get;set;}
public static void Main()
Console.WriteLine(FiddleHelper.GetConnectionStringSqlServerW3Schools());
string sql = "INSERT INTO Customers (CustomerName) Values (@CustomerName);";
using (var connection = new SqlConnection(FiddleHelper.GetConnectionStringSqlServerW3Schools()))
var affectedRows = connection.Execute(sql, new {CustomerName = "MarkX"});
Console.WriteLine(affectedRows);
var customer = connection.Query<Customer>("Select CustomerID,CustomerName,1 AS X FROM CUSTOMERS WHERE CustomerName = 'MarkX'").ToList();
FiddleHelper.WriteTable(customer);