Adding comments to SQL code generated by Entity Framework Core
- Posted in
- Entity Framework
A funny feature that I've encountered recently. It's not something most people would find useful, but it helps tremendously with tracing and debugging what is going on. It's easy, just add .TagWith(someString) to your LINQ query and it will generate comments in SQL. More details here: Query tags.
Be the first to post a comment