.NET Pet Shop

The .NET Pet Shop is another e-commerce and ASP.NET-fronted application from Microsoft that uses more or less the same practices found in the IBuySpy storefront. What makes the .NET Pet Shop notable is that it's a .NET Framework implementation of the Sun J2EE blueprint application (which demonstrates Java best practices). The .NET version requires only one-fourth the number of lines of code and is reputed to be much faster, largely due to ASP.NET's built-in output caching features. (Java has no prebuilt equivalent.) Like the code for the IBuySpy store, the code for the .NET Pet Shop is mostly concentrated in two layers: a user interface and a set of stateless back-end components that access a database. The only difference is that these back-end components make use of the functions in a custom database class to achieve more economical code.

You can download the .NET Pet Shop from http://www.gotdotnet.com/team/compare/petshop.aspx, which also provides a performance comparison of the .NET and Java versions and links to documentation and frequently asked questions. It installs the required database and virtual directory automatically. The .NET Pet Shop is provided in C# code only. The home page for the .NET Pet Shop is shown in Figure 19-4.

Figure 19-4. The .NET Pet Shop

graphics/f19dp04.jpg



Microsoft. NET Distributed Applications(c) Integrating XML Web Services and. NET Remoting
MicrosoftВ® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting (Pro-Developer)
ISBN: 0735619336
EAN: 2147483647
Year: 2005
Pages: 174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net