Foreword
Microsoft has not only released a series of development tools and development platforms, but also launched a series of Demonstration applications on the .NET platform. Net PETSHOP is an excellent example. This e-commerce development application In order to cope with the J2EE platform, SUN has a complete example on the J2EE platform ---- J2EE PetStore, which reflects the BluePrint of J2EE. The problem solved by the two is the same, and the functions are also small, and the interface is also the same. Naturally, it is the public, and his wife is polite. We have no matter how it is good, but it can be found in the .NET and J2EE platform. What is the achievement. Here, I am unintentionally to debate the problem, nor intend to discuss how J2EE is the solution and implementation, just as a pure technical perspective, how to speak .NET PETSHOP is a set of solutions. And implemented. I think, the best study, is the best coding of such a large classic system, from the idea of design, there is no doubt that we will be great for us. Here, I will gradually gradually explore all aspects of the .NET PETSHOP in the series. I hope everyone will correct it!
.NET PET SHOP solves the problem description
.NET PET SHOP is an instance of an e-commerce, a concrete implementation on the Microsoft's .NET platform. This system contains the implementation of B2C and B2B. Here I will mainly be the part of the B2C, and B2B is not a key to solve the problem in .NET PET Shop.
.NET PET SHOP is an online pet shopping system that can be online shopping over a variety of terminals that can be connected to the Internet (including the specific interface as shown). Here, I will list the functions that it will implement, that is, demand:
(1) Management functions of user accounts: including account creation, account login, account maintenance;
(2) Product browsing features: category browsing, specific product browsing, detailed information, inventory information, etc.
(3) User shopping features: Add shopping, calculate total price, order, and so on.
.NET PET SHOP logical structure
.NET PET SHOP deploys the entire system in accordance with the three layered layers. .NET PET SHOP is divided into data display layers, intermediate layers, and data layers. These three layers are clearly divided into three aspects of distributed applications. The data display layer is primarily completed the interface and the end user interaction. It is some ASPX pages and code in the application; the intermediate layer is used to encapsulate business logic and rules, which are packaged in .NET components in the application; Accessing the data access component in the middle layer is interactive with SQL Server Provider, all data acquisitions rely on the stored procedure, not through the SQL statement.
.NET PET SHOP development environment support
Microsoft's .NET strategy is so grand, the same .NET PET SHOP needs to be very spectacular. The following is the environment I debug .NET PET SHOP, some things can be replaced, some are not necessary. Everyone can adjust according to their own situation.
(1) Operating system WIN2000 Server, Web Server IIS5.0, Database Server SQL Server 2000;
(2) Development Tools Visual Studio.net Enterprise Design Edition.
Here, if you want to know the UML model of .NET PET SHOP, you can use Visio to perform reverse projects, you can automatically generate static class diagrams (but it is impossible to generate examples and sequence diagrams, etc.). At the same time, Visio can also reverse engineering, generate database models, generating database models, which can be greatly helpful in understanding .NET PET SHOP, and can look at Microsoft's modeling methods and design processes. .NET PET SHOP system installation
.NET PET SHOP sample program code and white paper can be downloaded on Microsoft's MSDN website, or go to http://www.gotdotnet.com/compare to download.
There are Database, PetShopdoc, and Web and WebService several folders under the folder of PETSHOP. Database is a database installation script that sets the SA password of your database to empty to run these script installations. PETSHOPDOC is English white paper, and there is a reference value behind. The web is most of our program code we will discuss. WebService is a web service for publishing.
Next article I will analyze the three-layer application structure of .NET PET SHOP.