TAILIEUCHUNG - Microsoft ADO .NET 4 Step by Step - p 37

Thiết kế thêm một tập tin. Dbml dự án của bạn, mà chủ các mô hình dữ liệu ở dạng XML. Nó cũng cho biết thêm hai hỗ trợ các tập tin:. (1) một tập tin mà các cửa hàng một số thông tin thiết kế cụ thể; và (2) một hoặc tập tin chứa các lớp thực thể được tạo ra trong hoặc Visual Basic hay C #. | 336 Microsoft 4 Step by Step The Designer adds a .dbml file to your project which hosts the data model in XML form. It also adds two support files 1 a . file that stores some designer-specific information and 2 a . or . file that holds the generated entity classes in either Visual Basic or C . The Designer produces the designer file content as you make content-related changes to the visual design. You build your data model by dragging classes entities and associations relationships to the left pane of the designer surface. These entity and relationship instances are either generic forms from the Visual Studio Toolbox or existing database elements from the Server Explorer or Database Explorer in Visual Studio Express Editions tool window as shown in Figure 20-1. You can also include database-level stored procedures and custom functions in the model by dragging them to the Designer s right-side pane. FIGURE 20-1 The Designer after dragging and dropping an existing database table. Any changes you make to the model result in an immediate adjustment to the generated language-specific source code. You should not customize these generated class files because any future changes to the model will overwrite your changes. Note You can generate both the XML model and the class layer from a source database without using the visual designer. The Windows SDK installed with Visual Studio includes a program named . This tool generates output similar to that of the visual designer but it does so through a command-line interface. See the Code Generation Tool entry in the Visual Studio online help for information on using this application. Chapter 20 Using LINQ to SQL 337 Building a LINQ to SQL Model 1. Open the Chapter 20 CSharp C or Chapter 20 VB Visual Basic project from the installed samples folder. The project includes three classes OrderViewer StatesByYear and Switchboard. 2. Add a new LINQ to SQL .

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.