1. Trang chủ
  2. » Công Nghệ Thông Tin

a0005 linq to ado ne morebook vn 4892

7 2 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề LINQ to ADO.NET
Trường học University of Example
Chuyên ngành Computer Science
Thể loại Lecture Notes
Năm xuất bản 2023
Thành phố Hanoi
Định dạng
Số trang 7
Dung lượng 391,21 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

 LINQ to SQL allows querying a relational structure by converting the LINQ query into a native SQL query..  This means… that the queries that you write in code generates appropriate

Trang 2

 LINQ to SQL

 LINQ to DataSet

Trang 3

 LINQ to SQL allows querying a relational structure

by converting the LINQ query into a native SQL

query

 This means… that the queries that you write in

code generates appropriate queries to access the actual database, AUTOMATICALLY!

 There are several concepts that you will come to know in this module…

◦ How is the query written using object names (like tables

or views)?

◦ How is it validated by the compiler?

◦ When is the query generated?

Trang 4

 You could either…

◦ Create a class and annotate it with the Table name

◦ Get the Data context (The DataContext class

handles the communication between LINQ and

external relational data sources)

◦ Create a Generic type

 OR… use LINQ to SQL Classes in VS 2008

Trang 5

 Data abstraction

 Working with Strongly Typed objects

 Tied to the object model and NOT to the

database

 Query semantics is much more meaningful

 Right now, ONLY SQL is supported, but going forward there will be more providers which would provide access to different databases

 Once new providers come in, you could

connect to any database with virtually the

same code base

Ngày đăng: 04/12/2022, 09:45

🧩 Sản phẩm bạn có thể quan tâm