public static void Main(string[] args) { var persitor = new DatabasePersistor("DataContext", migrationConfig: new MySqlMigrationsConfiguration()); persitor.Insert(new TestDataClass { Value = ".NET Core" }); using (var db = persitor.GetConnection()) { var cnt = db.Insert(new TestDataClass() { Value = "From Dapper" }); Console.WriteLine($"Inserted {cnt}"); var result = db.Query <TestDataClass>("select * from TestDataClass where Id = 1"); if (result.Single().Value == ".NET Core") { Console.WriteLine("Dapper works"); } } Console.WriteLine("Done..."); Console.ReadLine(); }