有没有一个完美的代码生成工具来生成MVC Storefront?

发布于 2024-07-08 06:36:03 字数 108 浏览 6 评论 0原文

有谁知道一个好的代码生成工具(除了 Subsonic 之外,因为它在当前版本中不支持 IQueryable)以 Rob Conery 在 MVC Storefront 中工作的方式生成存储库和其他项目?

Does anybody know a good code generation tool (other than Subsonic because it doesn't support IQueryable in current version) to generate repository and other projects in a way Rob Conery worked in MVC Storefront?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一桥轻雨一伞开 2024-07-15 06:36:03

Rob Conery 推出了一个 Visual Studio 插件,可以使用使用 IQueryable 的存储库生成 MVC 代码,尽管我相信该模型是使用 Visual Studio 中的 Linq to SQL 类生成的,但 MVC Storefront 中的情况并非如此。

您可以在此处找到它。

Rob Conery has put out a Visual Studio plug-in that generates MVC code, using repositories that use IQueryable, although I believe the model is generated using Linq to SQL classes in visual studio, which wasn't the case in MVC Storefront.

You can find it here.

温折酒 2024-07-15 06:36:03

S#arp 架构可能有点过分了,但如果您还没有检查过,我会推荐。 它有一个非常好的教程作为下载的一部分以及一个工作的 Northwind 示例。

S#arp Architecture may be overkill, but if you haven't checked it out already, I would recommend. It has a very nice tutorial as part of the download as well as a working Northwind sample.

琉璃繁缕 2024-07-15 06:36:03

根据评论请求更新。

T4 满足您需求的答案?

另请参阅源生成器此处

Updated on comment request.

Is T4 the answer for your needs?

Also look at Source Generators and here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文