A Sandcastle Documented Class Library

# DataProvider LogQueryStatement Method

Logs the query statement into Data.DataRetrieval.QueryAudit channel at the Information level.

Namespace: Dundas.BI.Data.DataProviders
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public void LogQueryStatement(
    	Func<string> getQueryStatement
    )

    Public Sub LogQueryStatement (
    	getQueryStatement As Func(Of String)
    )

    public:
    void LogQueryStatement(
    	Func<String^>^ getQueryStatement
    )

    member LogQueryStatement :
            getQueryStatement : Func<string> -> unit

#### Parameters

getQueryStatement
  Type: System
  Func
  String
  The delegate that returns the query statement to be logged.

Remarks
The data provider need to call this method when the query is ready for execution and provide a delegate that returns the query text and parameter values in human readable format.
See Also

#### Reference

DataProvider Class
Dundas.BI.Data.DataProviders Namespace