Click or drag to resize

QuerySpecExtensionMethodsMarkWithTagTQuery 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.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static TQuery MarkWithTag<TQuery>(
	this TQuery query,
	string tag
)
where TQuery : QuerySpec

Parameters

query
Type: TQuery
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

TQuery
The type of the query

Return Value

Type: TQuery
the query specified

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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