代码生成 - 域/模型优先 (DDD)

发布于 2024-09-24 16:12:33 字数 445 浏览 3 评论 0原文

我正在寻找基于 DDD 或模型优先方法的代码生成的“完整”解决方案。理想情况下,这将是一个单独的应用程序或 VS 插件,我们可以使用和重复使用它来生成尽可能多的标准管道代码,同时保留我的自定义业务逻辑。

我想生成 VS 项目,包括 WCF 服务应用程序、数据层、实体模型等以及客户端应用程序,例如带有脚手架的 ASP.MVC(和/或 Web 表单)站点、Windows 客户端。

我知道有很多选择,例如 Entity Framework 与 NHibernate,开源框架例如 S#ahrp Architecture,还有商业产品。我对任何事情都持开放态度,因为我知道大部分投资都会及时到位。

更新: 除此之外:实体框架 (4.0) 是向前迈出的一大步,因为它将生成 C# 业务类以及数据库架构,使您能够专注于“模型”,这很好。是否有任何东西可以更高一级以允许基于某种(元)模型生成其他对象。

I'm looking for a 'complete' solution for code-generation based on DDD or model first approach. Ideally, this would be a separate application or VS plugin that we could use and re-use to generate as much of the standard plumbing code as possible, preserving my custom business logic as well.

I would like to generate VS projects, including WCF sercvice app, Data layer, entity model etc. and client applications such as ASP.MVC (and/or web-forms) sites with scaffolding, windows client.

I know there are many choices like Entity Framework vs NHibernate, open-source frameworks such as S#ahrp Architecture, and there are commercial products as well. I'm open to anything as I know most of the investment will be in time.

Update:
To add to this: The Entity Framework (4.0) is a big step forward as it will generate c# business classes as well as the database schema, allowing you to focus on the 'model', which is good. Is there anything that will go one level higher to allow generation of other objects based on a (meta)model of some kind.

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

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

发布评论

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

评论(2

<逆流佳人身旁 2024-10-01 16:12:33

我建议您查看 CodeSmith。它带有几个不同的模板框架,例如PLINQO (Linq-to-SQL)、NHibernate、CSLA 和 . netTiers (听起来更接近您正在寻找的内容)。

另请观看此处。

谢谢
——布莱克·尼米斯基

I'd recommend taking a look at CodeSmith. It comes with several different template frameworks like PLINQO (Linq-to-SQL), NHibernate, CSLA and .netTiers (which sounds closer to what you are looking for).

Also take a look at the video tutorials on how to use the frameworks located here.

Thanks
-Blake Niemyjski

楠木可依 2024-10-01 16:12:33

据我所知,SparxEA(企业架构师)支持代码生成(以及从代码生成模型)但我自己从来没有真正这样做过。

因此,这肯定允许您对系统/域进行建模,然后生成适当的代码。

它似乎还支持与 Visual Studio 集成: http:// www.sparxsystems.com.au/products/mdg/int/vs/index.html

I understand that SparxEA (Enterprise Architect) supports code generation (and the generation of models from code) but I've never actually done that with it myself.

So this should definately allow you to model your system / domain and then generate appropriate code.

It also seems to support integration with Visual Studio: http://www.sparxsystems.com.au/products/mdg/int/vs/index.html

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