QueryableExtensionMethodsMarkWithTagTSource 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.5.0.0 (5.5.18.1019)
Syntax public 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.LinqIQueryableTSource
the query to tag - tag
- Type: SystemString
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:
IQueryableTSourcethe query specified
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryableTSource. 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