Beispiel #1
0
        public async Task <List <T> > LoadData <T, U>(string sql, U parameters)
        {
            using (IDbConnection connection = new FbConnection(connectionString))
            {
                var rows = await connection.QueryAsync <T>(sql, parameters);

                return(rows.ToList());
            }
        }