TAILIEUCHUNG - Cách làm việc với dữ liệu

Truy cập dữ liệu từ một nguồn dữ liệu là một khía cạnh quan trọng của một ứng dụng Web. Mỗi ứng dụng web hiển thị dữ liệu động cần phải truy cập dữ liệu từ một nguồn dữ liệu. Dữ liệu từ một nguồn dữ liệu có thể được truy cập bằng cách thực hiện logic truy cập dữ liệu trực tiếp vào các lớp trình bày hoặc bằng cách tách logic truy cập dữ liệu từ các lớp trình bày bằng cách tạo ra một layer mới hợp lý được gọi là Data Access Layer (DAL). Chương này. | Working with Data Accessing data from a data source is an important aspect of a Web application. Every Web application that displays dynamic data needs to access data from a data source. Data from a data source can be accessed either by implementing the data access logic directly into the presentation layer or by separating the data access logic from the presentation layer by creating a new logical layer known as Data Access Layer DAL . This chapter discusses the basics of accessing data in Web applications. It also discusses how to access data from a database by using the presentation layer. In addition it discusses how to implement DAL to access data from a database. Objectives In this chapter you will learn to ỆI Identify basics of data access in Web applications ỆI Access data by using the presentation layer ỆI Access data by using DAL Chapter 6 Identifying the Basics of Data Access in Web Applications Most Web applications are designed by using the multiple tier model known as the N-tier model. Designing an application by using the N-tier model provides increased performance and scalability. This is because the functioning of each layer is completely hidden from other layers and this makes it possible to change or update one layer without recompiling or modifying the other layers. The following figure shows a basic N-tier model. The Basic N-tier Model The preceding figure shows three layers which can further be divided into separate layers. Presentation Layer In a Web application the presentation layer is the interface that appears when a user opens a Web page in the browser. If you see the source code of the page you would only see the code such as HTML Javascript and Cascading Style Sheets. You would not be able to see the database queries loops calls to classes or any behind-the-scenes processing. This is due to the fact that the presentation layer does not contain any data access code or program logic. However in case of small Web applications you may find

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.