Dapper 精确查询被发送到数据库引擎
Dapper exact query being sent to database engine
正在寻找一种方法来获取在替换文字/参数后发送到 SQL 服务器的确切查询。
执行代码:
result = connection.Query(Of MyList)(query, New With {Key .A = A, Key .B = B, Key .C = C})
我想捕获(在代码中,而不是在数据库服务器端)参数@A、@B 和@C 已被其值替换的精确查询。
Dapper 不提供此类功能。您将不得不分叉其源代码并自己添加此类日志记录。
where parameters @A, @B and @C are already substituted with its values.
参数未被替换。带有参数标记的查询是发送到服务器的确切查询。参数值单独发送。
正在寻找一种方法来获取在替换文字/参数后发送到 SQL 服务器的确切查询。
执行代码:
result = connection.Query(Of MyList)(query, New With {Key .A = A, Key .B = B, Key .C = C})
我想捕获(在代码中,而不是在数据库服务器端)参数@A、@B 和@C 已被其值替换的精确查询。
Dapper 不提供此类功能。您将不得不分叉其源代码并自己添加此类日志记录。
where parameters @A, @B and @C are already substituted with its values.
参数未被替换。带有参数标记的查询是发送到服务器的确切查询。参数值单独发送。