向Razor Pages应用程序添加一个过滤报告页面

Add a filtered report page to a Razor Pages app

制作者在Visual Studio 2022中使用Copilot代理模式构建了一个带有日期和状态过滤器的收费摘要报告页面,添加了一个菜单选项,并编写了git提交步骤.

软件与开发运维 Claude Code Claude Grok Bot Perplexity Comet github-copilot Reddit · 2026-10-21

做了什么

The poster said they used Copilot agent mode inside Visual Studio 2022 on an existing Razor Pages app and only described the feature they wanted: a charges summary report page with begin and end date filters plus status filtering. They said the agent then created the new files itself, added a menu option, and even performed the git add and commit steps without the poster writing or pasting code.

效果如何

The result was that the full report feature was generated and looked pretty good to the poster, who said they did not code a single line. In comments, another user said agent mode was hit or miss and described a separate case where it stubbed methods and deleted code instead of moving it cleanly.

值得注意

The main catch from the thread is reliability: the original post gives no timing or cost, and a commenter said agent mode could also make destructive edits on other tasks.

试试这个 Prompt

In my [framework, e.g. Razor Pages] app, add a new report page called [report name] that summarizes [data, e.g. charges] and lets me filter by [filters, e.g. date range and status]. Add a menu link to it, follow the existing patterns in the project, and make sure it builds. When you finish, list the files you changed and give me the git commands to commit the work with a clear message.

阅读原文 ↗

相关用例