Đang chuẩn bị liên kết để tải về tài liệu:
Visual Basic .NET at Work Building 10 Enterprise Projects phần 7
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Trong nhiều năm, công ty đã phải vất vả, vì nhiều lý do khác nhau và trong nhiều trường hợp khác nhau, với trao đổi dữ liệu giữa các chương trình, hệ thống, và các công ty khác. Có cơ sở dữ liệu quá nhiều, với các định dạng độc quyền của riêng mình. | 290 Project 7 THE PROBLEM For years companies have struggled for many different reasons and in many different circumstances with exchanging data between programs systems and other companies. There were too many databases each with its own proprietary format. Sure you could export the data to a few inadequate formats like CSV but that told the receiving program nothing about the data. So how do we help these companies solve this problem THE SOLUTION I ll show you how XML can be used to pass data between companies and programs and also how to validate it against a schema. Our project has two separate companion programs one for the supplier of data and one for the consumer. These programs written to accommodate a fictitious toy distributor can easily be modified to suit your own needs. The Project During the course of the project I ll show you several techniques that VB.NET gives you to make using and interacting with XML easy. I ll also show you one way in which XML can solve data interaction problems. The following activities will be part of the project 1. Defining databases. We ll define and create databases for both the supplier of data and the consumer. 2. Create WinForms data generator. The first program is the one used by the supplier of data. It will allow users to extract data from their database and generate an XML version of that data. It will also create a schema that can be used to validate the data. I ll show you the schema and the XML. 3. Create WinForms data reader. The second program is a reader utility that the consumer of the data would use to load the XML data. 4. Validate the data. The loaded XML data will be validated against the schema created by the data supplier. Once the data is validated it can optionally be written to the consumer s own database. You ll know all you need by the time we get to the actual project because I m going to give it all to you XML XSD namespaces and validation you ll know what they all are and how to use them to make