Do you use TagWith?

Last updated by Brook Jeynes [SSW] 10 months ago.See history

TagWith adds comments to the generated SQL. This makes it easier to identify queries when they run on the database.

This is very useful when debugging issues as there are often multiple pieces of code that generate similar statements and as such it's hard to identify what is executing particular queries.

var list = await context
    .TagWith("Get All Sales")

Figure: Code to add tagging

-- Get All Sales

select * from sales

Figure: SQL generated by the above code

We open source. Powered by GitHub