Ndepend CQL to find methods of certain types using particular framework assembly

眉间皱痕 提交于 2019-12-24 00:38:36

问题


In order to check if types not derived from certain base classes are using a low-level framework assembly, the following query can be used.

SELECT TYPES WHERE IsDirectlyUsing "ASSEMBLY:Framework.Data"
AND !(DeriveFrom "App.BaseTypes.BusinessFacadeBase"
OR DeriveFrom "App.BaseTypes.BusinessComponentBase"
OR DeriveFrom "App.BaseTypes.DataAccessComponentBase")

Now I wish to drill down further to see which methods from those classes are actually doing so. But the thing is if I change the query target from TYPES to METHODS then DeriveFrom is not going to apply. How can these criteria be preserved?

来源:https://stackoverflow.com/questions/2474689/ndepend-cql-to-find-methods-of-certain-types-using-particular-framework-assembly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!