RavenDB:使用 Fiddler 检索发送到数据库的查询的结构 [英] RavenDB: Use Fiddler to retrieve the structure of the queries sent to the database

查看:57
本文介绍了RavenDB:使用 Fiddler 检索发送到数据库的查询的结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 Fiddler 4 来检索发送到 RavendB (C#) 的查询的结构?事实上,我目前正在使用 session.Query() 编写查询来管理存储在 RavenDB 数据库中的数据.我想将所有这些查询转换为 session.Advanced.DocumentQuery() 查询.但是,其中一些查询很复杂.是否可以使用 fiddler 来查看 RavenDB 如何将 session.Query() 查询转换为 session.Advanced.DocumentQuery() 查询?如果是这样,我该如何继续?提前致谢.

Is it possible to use Fiddler 4 to retrieve the structure of the queries sent to RavendB (C#)? In fact, I am currently using session.Query() to write queries to manage the data stored in a RavenDB database. I would like to transform all these queries into session.Advanced.DocumentQuery() queries. But, some of these queries are complex. Is it possible to use fiddler to see how RavenDB transform the session.Query() queries I run into session.Advanced.DocumentQuery() queries? If so, how can I proceed? Thanks in advance.

推荐答案

只需在查询对象上调用 .ToString() 即可更轻松地获取查询的字符串.

You can more easily get the string of the query by just calling .ToString() on the query object.

或者,您可以通过 fiddler 管理所有内容,方法是指定 http://localhost.fiddler:8080 作为ravendb 中的数据库 url.

Alternatively, you can pipe everything through fiddler, by specifying http://localhost.fiddler:8080 as the db url in ravendb.

这篇关于RavenDB:使用 Fiddler 检索发送到数据库的查询的结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆