Microsoft ADO .NET 4 Step by Step - p 5

Trọng tâm của tất cả các dữ liệu trong là bảng-hay đúng hơn, các DataTable. Điều này lớp học, đặt tại , định nghĩa một bảng trong đó kiểu mạnh Nghe Đọc ngữ âm | Chapter 1 Quick Reference To Do This Create a new data source Create or open a project in Visual Studio. Select Data Add New Data Source. Follow the steps in the Connection Wizard. Preview data in an existing data source Select Data Preview Data. Select the target data source from the Select An Object To Preview list. Click the Preview button. Remove a data source from a project Select the .xsd file in the Solution Explorer. Press the Delete key or right-click on the file and select Delete from the shortcut menu. Chapter 2 Building Tables of Data After completing this chapter you will be able to Understand the classes used to create tables Create strongly typed columns within a table Indicate the primary key for a table Design a table graphically or in code The focus of all data in is the table or more correctly the DataTable. This class located at defines a single table in which strongly typed column definitions and runtime data rows appear. By itself a DataTable isn t very interesting it s just a memory-based repository for data. It becomes useful only when you start employing and standard .NET Framework methods and tools to process the data stored in each table and data row. Note Some of the exercises in this chapter use the same sample project a tool that exposes the structure of a DataTable. Although you can run the application after each exercise the expected results for the full application might not appear until you complete all related exercises in the chapter. Implementing Tables As with everything else in .NET tables in exist as instantiated objects. Whether hand-written by you produced by dragging and dropping items in the development environment or generated by one of the Visual Studio tools the code you include in your application exists to create and manage DataTable objects and other related objects. Logical and Physical Table Implementations s DataTable object represents a .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.