在ASP.NET MVC4中传递View a Fat模型有什么后果? [英] What are the consequences of passing the View a Fat model in ASP.NET MVC4?

查看:59
本文介绍了在ASP.NET MVC4中传递View a Fat模型有什么后果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



传递View a Fat模型有什么后果? My Fat模型通常包含用于查询表示功能表结构的数据库和数据成员的业务逻辑。我已经看到ViewModels用于代替Fat Models,但我不完全理解为什么。



如果您需要进一步澄清,请告诉我。



谢谢,

robNO。

Hello,

What are the consequences of passing the View a Fat model? My Fat models generally hold business logic for querying the database and data members representing the functional table structure. I have seen ViewModels used in substitute for Fat Models but, I don''t fully understand why.

Please let me know if you need further clarification.

Thanks,
robNO.

推荐答案

我在ASP上发布了同样的问题.NET MVC论坛和以下是我收到的回复以防其他人想知道同样的事情。



后果是什么通过View a Fat模型?
I posted the same question on the ASP.NET MVC forums and here is the response I''ve received in case anyone else is wondering the same thing.

What are the consequences of passing the View a Fat model?


这篇关于在ASP.NET MVC4中传递View a Fat模型有什么后果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆