EntityFrameworkQueryableExtensions.TagWith<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a tag to the collection of tags associated with an EF LINQ query. Tags are query annotations that can provide contextual tracing information at different points in the query pipeline.
public static System.Linq.IQueryable<T> TagWith<T> (this System.Linq.IQueryable<T> source, string tag);
static member TagWith : System.Linq.IQueryable<'T> * string -> System.Linq.IQueryable<'T>
<Extension()>
Public Function TagWith(Of T) (source As IQueryable(Of T), tag As String) As IQueryable(Of T)
Type Parameters
- T
The type of entity being queried.
Parameters
- source
- IQueryable<T>
The source query.
- tag
- String
The tag.
Returns
- IQueryable<T>
A new query annotated with the given tag.
Exceptions
source
or tag
is null
.
tag
is empty or whitespace.
Remarks
See Tagging queries in EF Core for more information and examples.
Applies to
Feedback
Submit and view feedback for