使用 ViewModels、EditModels 和 AutoMapper 的 ASP.NET MVC 参考实现

发布于 2024-09-30 18:15:35 字数 192 浏览 0 评论 0原文

一个简单的问题:是否有一个使用 ASP.NET MVC 与 ORM、ViewModels 和 EditModels(最好使用 Automapper)的良好参考实现?

我了解使用这些特定于目的的模型的好处,但对迄今为止我编写的使用这些模型的代码的结果不太满意。如果有一个简单的参考应用程序能够展示这些方面在 MVC 工作流程中的应用方式和位置,那就太好了。

A simple question: is there a good reference implementation of using ASP.NET MVC with an ORM, ViewModels, and EditModels (ideally using Automapper)?

I understand the benefits of using these purpose-specific models, but haven't been too happy with the result of the code I've written to use these so far. A simple reference application showing how and where these aspects are applied in the MVC workflow would be great.

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

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

发布评论

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

评论(2

泼猴你往哪里跑 2024-10-07 18:15:35

Jimmy Bogard 给出了 优秀MVCConf 上的演示值得一看

Jimmy Bogard gave an excellent presentation at MVCConf which is worth checking out.

赠意 2024-10-07 18:15:35

http://whocanhelpme.codeplex.com/

不确定这是否是一个参考实现,但它会尝试收集好的。

http://whocanhelpme.codeplex.com/

Not sure if it's a reference implementation, but it tries to collect good ones.

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