MVC3 生成控制器/操作及其属性的列表(尤其是操作过滤器)
是否有一种合理的方法来生成项目中所有控制器/操作及其各种属性(尤其是操作过滤器)的完整列表?
我们的项目现在相对较小,但随着它的增长,我们希望能够生成所有控制器/操作及其[授权]设置的完整列表,以确保开发人员没有错过任何内容,并详尽地搜索源代码不是一个可行的选择。
Is there a reasonable way to generate a complete list of all controllers/actions in a project, along with their various attributes - notably action filters?
Our project is relatively small now, but as it grows we'd like to be able to generate a comprehensive list of all controllers/actions and their [Authorize] settings to make sure that the developers haven't missed anything, and exhaustively searching the source code isn't a viable option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这可能看起来很简单,但是保留项目文档怎么样,或者是否有其他原因不采用这种方法?详细设计规范和功能需求规范将满足这些需求。这些应该由软件工程师在代码部署前后进行维护。
-----编辑--------
找到类似的帖子 此处
I know this might seem elementary, but how about keeping documentation on the project, or is there another reason for not taking this approach? A Detailed Design Specification and a Functional Requirements Specification would cover those needs. These should be maintained by the softare engineer pre and post code deployment.
-------EDIT-------
Found a similar post here