TAILIEUCHUNG - Professional XML Databases phần 7

Bây giờ, chúng ta hãy thay đổi liên kết mở rộng trước đó của chúng tôi để chúng tôi phải đi đến hai cửa hàng khác nhau trên lộ trình của chúng tôi: các cửa hàng tạp hóa và nguồn lực khác được gọi là hiệu sách. Bởi vì vòng cung mô tả hành vi chung chung, nếu bạn sử dụng cùng một nhãn hiệu về tài nguyên khác nhau, | ADO ADO and XML When working with the .NET framework you can easily move DataSets around because they are inherently disconnected. We can write a function that returns our dataset Public Function GetCustomersList as DataSet Dim sqlConnection as New SQLConnection server local uid sa database northwind Dim dsCommandSet as New SQLDataSetCommand select from customers sqlConnection Dim dsCustomers as new DataSet dsCustomers Customers GetCustomersList dsCustomers End Function Applications can expose DataSets in this manner. However a useful side-effect of DataSets is that when used as a Web Service they expose XML. A Web Service in this context can be summed up as a function that can be called from the Web from an HTTP request . By attributing the above function as a Web function a URL is created to route the request from the function. It is not clear at the time of this writing how and what attributes will be required. Attributes are a new concept to VB and decorate a function or code with more meaning without polluting the language. When the function is invoked by another .NET component a DataSet is returned. When the function is invoked by a component the data is returned as an XML document. If you simply want to force the return of XML in a string format declare the function as String and then return . If changes are made to the DataSet that is filled by a DataSetCommand that same DataSetCommand can reconcile those changes with the Database using the Update method. dsCustomers Customers customers .Rows 0 CompanyName foo Remote the dataset send it in mail change it in any way at some point send it back and then dsCustomers Customers If you have stored procedures or SQL statements associated with the insert update and delete commands these will fire appropriately when the update method is invoked. You also have the ability to just send the changes using

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.