EntityFrameworkQueryableExtensions.TagWith<T>(IQueryable<T>, String) Method
Definition
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.