阅读背景:

我应该从MVC应用程序中的Views迭代业务对象吗?

来源:互联网 

I'm wondering how many data access should I do in a View when using a MVC framework. For instance: In my application there is a page that shows a list of all my favorite artists and, for each artist, a list of all songs of that artist. The question is: Should I pass only the artist list to the View, or should I pass also all the data (artist + songs)?I'm wondering how many data access should I do




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: