什么是视图层 [英] what is view layer

查看:362
本文介绍了什么是视图层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

视图层和访问层简介

推荐答案

视图层是获取数据并将其显示在屏幕上的层.

视图层可以是网页或Windows窗体,也可以是其他类型的GUI表示技术.

有关模型视图控制器设计模式的信息,请参见Wikipedia条目. [ ^ ]

视图层依赖于它们是一个包含数据的模型,也可能是一个可以包含业务逻辑的控制器.视图通常观察模型或绑定到模型.

另请参见 Observer_pattern. [ ^ ]

访问层用于连接数据库.它可以重用数据库命令,并可以更轻松地移动到其他数据库,例如从MySQL交换到Oracle或SQL Server.
The view layer is the layer that takes the data and shows it on the screen.

The view layer can be a web page or a windows form or some other sort of GUI presentation technology.

See the Wikipedia entry for Model View Controller design pattern.[^]

The view layer relies on their being a Model which contains the data and maybe a controller which can contain business logic. The view often observes the Model or is bound to it.

See the Observer_pattern too.[^]

The access layer is used to connect to the database. It allows reuse of database commands and can make it easier to move to different databases, like swappping from MySQL to Oracle or SQL Server.


这篇关于什么是视图层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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