如果有的话,MVC 模式与 DAL/BLL 设计模式有何不同? [英] How does the MVC pattern differ, if at all, from the DAL / BLL design pattern?

查看:24
本文介绍了如果有的话,MVC 模式与 DAL/BLL 设计模式有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习早期的数据访问教程 在 Microsoft 的 ASP.NET 网站上,我突然想到这一切似乎与我读到的有关使用 MVC 模式.作为一个新手,我还没有实现 MVC 模式,但我很好奇这两种设计结构有何不同,以及我是否应该将注意力集中在一个或另一个上,尤其是在网页设计的上下文中.

I'm making my way through the early Data Access Tutorials on Microsoft's ASP.NET website and it occurred to me that this all seems awfully similar to what I have read about separating your logic and presentation code using the MVC pattern. As a newbie I have yet to implement the MVC pattern but I'm curious as to how these two design structures differ and if I should be focusing my attention on one or the other, particularly in the context of web design.

推荐答案

您为数据访问教程发布的链接是 MVC 模式的实现.MVC模式是一个概念,实现可以不同;你在 ASP.NET 中有这个,而在 Java 中有一个名为 Struts 的框架,它是一个实现 MVC.

The link you've posted for the Data Access Tutorial is implementation of MVC pattern. MVC pattern is a concept, implementation can differ; you have this in ASP.NET whereas in Java there's one framework called Struts, which is an implementation MVC.

DAL &BLL 模式在概念上与 MVC 模式不同;但不是这个特定的实现.MVC 实际上是通过使用 DAL、BLL & 来实现的.查看模式.

DAL & BLL patterns differ from the MVC pattern in terms of concepts; but NOT this specific implementation. MVC is actually achieved through usage of DAL, BLL & View Patterns.

这篇关于如果有的话,MVC 模式与 DAL/BLL 设计模式有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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