From 0ec38ef619d56e686e299c393f6158e0b4fa48b3 Mon Sep 17 00:00:00 2001 From: Konstantin Safonov Date: Fri, 27 Sep 2024 15:16:00 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce77a6d..9e41f65 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ I needed to tag database queries in an existing project without rewriting tons o * Remove `using Dapper` from your source. * Add `using kasthack.Autotagging.DapperProxy` to source files / global using. * (optionally) Set `TaggingSqlMapper.AppName` -* Boom! All database queries sent through dapper start with the comment +* Boom! All database queries sent through dapper start with the comment: ```sql -- App: {app_name} @@ -35,4 +35,8 @@ I needed to tag database queries in an existing project without rewriting tons o ``` -* Now your DBAs and devops can easily deal detect sources of problematic queries. +* Now your DBAs and devops can easily detect sources of problematic queries and deal with them. + +## How does it work + +* Source generator that mirrors all dapper methods, adds `[Callel(MemberName|FilePath|LineNumber)]` parameters to these methods, and prepends them to queries.