Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 31, 2025

  • Add a new section to tags.md about TagWithCallSite
  • Add inline code sample demonstrating TagWithCallSite usage (no changes to samples directory)
  • Remove version reference ("Starting with EF Core 6.0")
  • Remove section about combining TagWithCallSite with TagWith
  • Show the generated SQL output with file path and line number
  • Use xref for API documentation link instead of backtick code formatting
Original prompt

This section details on the original issue you should resolve

<issue_title>Document TagWithCallSite</issue_title>
<issue_description>### Type of issue

Missing information

Description

[Enter feedback here]
Should.TagWithCallSite()be documenterd here? If not, where?

Page URL

https://learn.microsoft.com/en-us/ef/core/querying/tags

Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/querying/tags.md

Document Version Independent Id

35b7f4ad-ea1c-d42e-d601-8b56f418a194

Article author

@smitpatel</issue_description>

<agent_instructions>Please modify the "Query Tags" documentation page to include information about the TagWithCallSite API.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 31, 2025 08:44
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Copilot AI changed the title [WIP] Add documentation for TagWithCallSite API Document TagWithCallSite method in Query Tags documentation Dec 31, 2025
Copilot AI requested a review from roji December 31, 2025 08:51
…, remove combination example

Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Copilot AI requested a review from roji December 31, 2025 10:42

## Tagging with file name and line number

Queries can be automatically tagged with the file name and line number where the LINQ query is defined in source code. This is done using the `TagWithCallSite()` method:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an xref to reference the TagWithCallSite in the API docs rather than code-fencing with backquotes. See elsewhere for how it's done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in a76404a - changed from backtick code formatting to xref API reference

Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Copilot AI requested a review from roji December 31, 2025 12:00
@roji roji closed this Dec 31, 2025
@roji roji reopened this Dec 31, 2025
@roji roji marked this pull request as ready for review December 31, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document TagWithCallSite

2 participants