Database Class (Example: MySQL) in C#
Everything below is written as an example, learn to use Dapper better. Below, in a separate class, methods are implemented not only to execute queries of the type (Scalar and NonQuery) but also a method that returns a set of data in DataTable. The handling of exceptional situations is also considered.