TAILIEUCHUNG - Thao tác dữ liệu Sử dụng LINQ

Bất kỳ ứng dụng hiển thị thông tin năng động để lấy dữ liệu từ các nguồn dữ liệu khác nhau, chẳng hạn như một tập tin bằng phẳng, một tập tin XML, hoặc một cơ sở dữ liệu. Để truy cập dữ liệu từ các nguồn dữ liệu, lập trình viên cần phải thực hiện kỹ thuật khác nhau. Điều này làm phức tạp nhiệm vụ của các lập trình bởi vì họ cần phải nắm vững tất cả các kỹ thuật. Tuy nhiên, nhiệm vụ của các lập trình có thể được đơn giản hóa bằng cách thực. | Manipulating Data Using LINQ Any application that displays dynamic information has to retrieve data from various data sources such as a flat file an XML file or a database. To access data from these data sources programmers need to implement different techniques. This complicates the task of programmers because they need to master all the techniques. However the task of programmers can be simplified by implementing a standard technique to access data from various data sources. Such a standard technique is provided by Language-Integrated Query LINQ . This chapter provides an overview of LINQ. In addition it discusses how to access data from disparate data sources. Objectives In this chapter you will learn to ỆI Identify the basics of LINQ ỆI Access data from disparate data sources by using LINQ Chapter 7 Identifying the Basics of LINQ When creating a dynamic Web application you need to retrieve data from various data sources such as a flat file an XML file or a database. To access data from these disparate data sources you need to learn and implement different techniques. For example to access data from files you need to implement input output streams and to access data from a database you need to implement SQL. This complicates your task as a programmer. This task can be simplified by using LINQ. LINQ provides a standard way to access data from disparate data sources. Using LINQ you can access data from disparate data sources by writing a standard query LINQ query. This eases your task because you need not learn different technologies to access data. In addition LINQ provides various facilities such as stronger typing compile-time checking and improved debugger support. The following figure shows a model of .NET LINQ. .NET La nonage-Inters rat cd Query Objects Relational XML Model of .NET LINQ NIIT Manipulating Data Using LINQ .

TỪ KHÓA LIÊN QUAN
Đã 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.