SqlEventData Type
Contains information about a SQL command being executed, including the command text, parameters, and connection information for debugging and monitoring purposes.
Record fields
| Record Field |
Description
|
Full Usage:
Command
Field type: string
|
The text of the SQL command being executed.
|
Full Usage:
ConnectionStringHash
Field type: byte[]
|
The SHA256 hash of the UTF8-encoded connection string used to perform this command. Use this to determine on which database connection the command is going to be executed.
|
Full Usage:
Parameters
Field type: (string * obj) seq
|
The parameters (if any) passed to the SQL command being executed.
|
Instance members
| Instance member |
Description
|
Full Usage:
this.ToRawSql
Returns: string
|
Use this to execute similar queries to test the result of the executed query.
|
Full Usage:
this.ToRawSqlWithParamInfo
Returns: string
|
SQLProvider does parametrized SQL. This method opens parameters for easier query debugging.
|