Is the MVC pattern a pure presentation layer model?

Kind of a special issue today :)

I just passed a test at my technical university, where they told me that I was wrong.

Therefore, I like to know people from you (I believe that you are more than my teachers):

Is the MVC pattern implemented only at presentation level? Or is it a model part of the template at the Business / DataAccess level.

My teacher said that it is not possible that a template can span more than one level. But I think this is a corporate architecture template and therefore can span several levels.

How am I wrong? :)

+7
source share
3 answers

You're wrong ... for the class. In the classroom, what the teacher says / book .

Outside class, I agree with you 100%.

+4
source

Your teacher is right, the β€œmodel” simply represents the data that needs to be presented. For example, the data that makes up a web page.

The data itself ultimately comes from the business layer, but the model must be limited by the level of presentation. This is a model of your presentation.

For example, you can retrieve data as datasets and use datasets to create page-oriented models.

+4
source

I would think that MVC goes deeper than the presentation layer for the simple reason that supplying a model requires other layers to do something.

In addition, if we consider the model as some representation of the Domain Concept (see DDD) , then we are already talking about going beyond the boundaries of the presentation level.

+2
source

All Articles