public class TestResultDTO { public int id { get; set; } public string name { get; set; } public float score { get; set; } } public class Dapper { private MySqlConnection db = new MySqlConnection("Server=serverip;User=user;Password=password;Database=db_name;Port=port"); public Dapper() { db.Open(); } public TestResultDTO DapperSelect(string data) { if (db.State != System.Data.ConnectionState.Ope..