|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Northwind Traders OverviewWhat is Northwind Traders? The Northwind Traders sample database contains sales data for a fictitious company called Northwind Traders, which imports and exports specialty foods from around the world. Click here to see the schema diagram of the database.Logged in with 'Admin' User ID users can view all the data from the Northwind database freely. Every tables data is displayed in a grid, the grid has a search control just above it. If they like, users can add, edit, delete data from any of the tables and review all the functionality. You will notice from the source code that there are no hidden assemblies that the generated code refers to. All souce code is included in a generated application. For the sake of documetation we have included a sample of the souce code and not all of it. When you purchase the product and generate applications, complete source will be generated and available to review and modify. We have disabled some of the administration related functionality, from the admin account, so that users accidentally do not lock themselves out of the sample application. Click here to download a copy of the sample application. The download file contains the sample in 3 different languages - VB.NET, C#, and J#. The setup wizard will walk you through all the necessary steps to setup 3 web applications, one database, and the source projects on your local computer. Once you have run the install you will be able to double-click on the .NET solution and review the application. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Application Architecture
The base UI of Northwind Traders Sample is created using ASP.NET user controls (.ascx files), a few web pages (.aspx files), and some custom controls. Each of the table has 3 corresponding user controls - Grid, Filter, and Detail control. User controls can easily be reused to display different sets of data from the same table using different criteria. This is especially useful in a portal environment or coporate Intranet. In addition to the user controls associated with each of the database tables DotNetGenie also generates a few generic user controls. Foreign Key Control allows users to make selections from a table for foreign key values. Custom Datagrid Control is a customized datagrid control and has multiple flavors for mutiple uses. Custom Dropdownlist Control is a dropdownlist control with some added functionality. There are very few ASP.NET web pages (.aspx files) that are generated. For instance Grid.aspx is used to display all the grids and filter user controls, Detail.aspx is used to display a single record from any table for editing data, MasterDetail.aspx is used to display a master and detail relationship with 2 grid controls. The middle-tier consists of the business and data layer classes. Business classes provide the data to the presentation layer via objects and fetch data from the data layer via datasets and datareaders. The data layer communicates with the database via stored procedures ONLY. Microsoft's Data Access Application Block is integrated in to the data layer to handle all database access. Click on the links below to view the files that implement the Northwind Traders Sample Application:
What did DotNetGenie Do? Below is a list of objects that were already present in the Northwind database and a list of objects that were generated by DotNetGenie. The first column contains the number of objects that were already in the database and columns 2 and 3 list the number of objects generated by DotNetGenie.
What Do Some of these Generated Items Mean?
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||