QueryableExtensionMethods.MarkWithTag<TSource> Method |
Specifies the tag to append as comment into the SQL query / queries generated from the query specified. Use the tag to
trace back the origin of a SQL query in the RDBMS.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntaxpublic static IQueryable<TSource> MarkWithTag<TSource>(
this IQueryable<TSource> source,
string tag
)
<ExtensionAttribute>
Public Shared Function MarkWithTag(Of TSource) (
source As IQueryable(Of TSource),
tag As String
) As IQueryable(Of TSource)
Parameters
- source
- Type: System.Linq.IQueryable<TSource>
the query to tag - tag
- Type: System.String
the string to insert as comment into the SQL query/queries. Don't use '/*' and '*/' markers in your tag. If the tag is null or empty, it's ignored.
Type Parameters
- TSource
- the type of the query
Return Value
Type:
IQueryable<TSource>the query specified
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also