Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

CommonAppenders..::..Tag<(Of <(<'TResult>)>)> Method (ILink<(Of <(<'TResult>)>)>, String, String, Int32)

Prepends a comment to SQL statement with the file name, member name, and line number. This is used mostly for logging.

Namespace:  Tortuga.Chain
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public static ILink<TResult> Tag<TResult>(
	this ILink<TResult> previousLink,
	string callerFilePath,
	string callerMemberName,
	int callerLineNumber
)
<ExtensionAttribute> _
Public Shared Function Tag(Of TResult) ( _
	previousLink As ILink(Of TResult), _
	callerFilePath As String, _
	callerMemberName As String, _
	callerLineNumber As Integer _
) As ILink(Of TResult)
[ExtensionAttribute]
public:
generic<typename TResult>
static ILink<TResult>^ Tag(
	ILink<TResult>^ previousLink, 
	String^ callerFilePath, 
	String^ callerMemberName, 
	int^ callerLineNumber
)

Type Parameters

TResult
The type of the t result.

Parameters

previousLink
Type: Tortuga.Chain..::..ILink<(Of <(<'TResult>)>)>
The previous link.
callerFilePath
Type: String
The caller file path.
callerMemberName
Type: String
Name of the caller member.
callerLineNumber
Type: Int32
The caller line number.

Return Value

ILink<TResult>.

Remarks


Tip: Use the same name for the file as your class.