有没有一个完美的代码生成工具来生成MVC Storefront?
有谁知道一个好的代码生成工具(除了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
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.
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.
根据评论请求更新。
是 T4 满足您需求的答案?
另请参阅源生成器和此处。
Updated on comment request.
Is T4 the answer for your needs?
Also look at Source Generators and here.