CQL请求组成
是否可以用 CQL 编写请求?
我想写一些类似的内容:
从组件“myassemblie”中选择类型,其中 IsUsing SELECT METHODS FROM ASSEMBLIES "myotherassemblie" WHERE IsStatic
谢谢, 货车
Is it possible to compose requests in CQL ?
I would like to write something like:
SELECT TYPES FROM ASSEMBLIES "myassemblie" WHERE
IsUsing SELECT METHODS FROM ASSEMBLIES "myotherassemblie" WHERE IsStatic
Thanks,
Vans
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NDepend 团队很自豪最终为这个问题提供了一个优雅的答案:) 感谢新的 NDepend v4 代码查询 LINQ (CQLinq) 功能,您所要求的内容可以这样写:
还有很多其他方法可以编写此类查询,但这种方式肯定是最简洁和优化的一种(右上角面板告诉它在 4ms 内执行):
The NDepend team is proud to finally provides an elegant answer to this question :) Thanks to the new NDepend v4 Code Query LINQ (CQLinq) feature, what you are asking for can be written for example like:
There are many other ways to write such query, but this way is certainly the most concise and optimized one (the top-right panel tells it is executed in 4ms):