ASP.NET
  Home arrow ASP.NET arrow Tables and Relationships for an ASP.NET AJ...
Click Here
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Tables and Relationships for an ASP.NET AJAX Server-Centric Based Online Shopping Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2007-12-05

    Table of Contents:
  • Tables and Relationships for an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Tables continued
  • More Tables continued
  • Relationships Between Tables

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    IBM developerWorks
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    Tables and Relationships for an ASP.NET AJAX Server-Centric Based Online Shopping Website


    (Page 1 of 4 )

    This is the second part of an eleven-part series focused on building an online shopping web site. In the previous part, we introduced the modules we will use as well as the main flow charts. In this part, we will take a closer look at the database design and describe the table structures and their relationships.
    A downloadable .rar file is available for this article.

    Database Design

    With the modules and main flow charts introduced, now we are ready to shift our attention to the database design.

    Tables Design

    In this article, we'll design a database named ShoppingDB.mdf, which contains more than tentables. For brevity, we choose to use table form to describe the table structuresof each related table, as follows:


    Table 1—Structure for table ‘Role’

    Field name

    Type

    Notes

    RoleID

    int

    Primary Key identifying the record

    RoleName

    varchar(50)

    The name of the role


    Table 2—Structure for table ‘Users’

    Field name

    Type

    Notes

    UserID

    int

    Primary Key identifying the record

    UserName

    varchar(50)

    The registering name of the user

    RealName

    varchar(50)

    The real name of the registered user

    Password

    varchar(255)

    The password of the registered user

    Address

    varchar(200)

    The address of the user

    Phone

    varchar(20)

    Phone number of the user

    Mobile

    varchar(20)

    The mobile number of the user

    Email

    varchar(200)

    The email address of the user

    CreateDate

    datetime

    Date and time when the user registers

    Status

    bit

    Identifies the current status of the user

    RoleID

    int

    Foreign key, referring to field RoleID in table ‘Role’

    Remark

    text

    Other info of the user


    Table 3—Structure for table ‘Category’

    Field name

    Type

    Notes

    CategoryID

    int

    Primary Key identifying the record

    Desn

    varchar(200)

    The category name

    ParentID

    int

    The ID value of the parent category

    OrderBy

    int

    The order number when in sort

    Remark

    text

    Memo info

     

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...
    - Order-Related Modules for an ASP.NET AJAX Se...
    - User and Role Management for an ASP.NET AJAX...
    - Programming an ASP.NET AJAX Server-Centric B...

    Click Here




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway