TAILIEUCHUNG - Professional LINQ phần 3

IEnumerable giao diện cung cấp lặp đi lặp lại trong một bộ sưu tập của một loại quy định. IQueryable giao diện cung cấp khả năng thực hiện các truy vấn đối với một nguồn dữ liệu được biết đến và cụ thể loại dữ liệu được biết đến. Có nghĩa là, với giao diện và giao diện IQueryable bạn nhận được một đối tượng | Part I Introduction to Project LINQ the IQueryable T interface. The IEnumerable T interface provides iteration over a collection of a specified type. The iQueryable T interface provides the ability to execute queries against a known and specific data source whose type of data is known. Meaning with the IQueryable interface and the IQueryable T interface you get an object that can evaluate queries. The iQueryable interface is based on expressions. One of the main differences between lEnumerable and IQueryable is that the lEnumerable interface provides forward-only iteration. It does not have the ability to move between items except forward . With iQueryable however you have much more flexibility with your query operations. Remember though that the IQueryable interface implements lEnumerable which provides IQueryable with iteration capability. There are two types of query operators. The first type operates on lEnumerable objects while the other operates on iQueryable objects. Each set of operators is implemented as static methods on the corresponding types meaning that the operators can be called using static method syntax as well as being called as instance methods. A lot of what makes this possible is the new features found in C and VB . Those features include lambda expressions a concise expression or statement block and extension methods static methods associated with a type . These and other features new to C and VB are discussed in Chapter 2 A Look at Visual Studio 2008. Standard query operators are grouped based on their function and that s how we ll tackle them in this chapter. Standard Query Operators This section discusses the standard query operators. These operators have both C and Visual Basic syntax. The examples will be given in C but the syntax will be provided in both C and Visual Basic. What you will find is that those standard query operators that are used more frequently have a dedicated language and keyword syntax which lets them .

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.