Programming ASP. net2.0 ado.net started in the actual project (1)

Source: Internet
Author: User

VOD Development
VOD big classification, using voddepart table
VOD topic category, which is in the vodcategory table
VOD program form, with vodprogram table

Voddepart stores large topics, such as entertainment, news, finance, and sports.
The vodcategory table stores names of some TV columns.
The vodprogram table stores some specific on-demand tables.

Voddepart and vodcategory are one-to-one relationships.
Vodcategory and vodprogram are many-to-many relationships.

-----------------------------------------
|
| Voddepart | <------> | vodcategory | <----------> | vodprogram |
|... |
| <----------> |
--------------------------------------------

Voddepart table
Id int 4
Technical title varchar 200
Includesc varchar 4000

Vodcategory table
Categoryid int 4
Categorytitle varchar 200/* directory name **/
Categorydesc varchar 4000/* directory Description */
Promotion int 4/* Recommended directory or not */
Imageurl varchar 200/* Image Description of the Directory */
Voddepartid int 4/* associated voddepart ID */(foreign key FK)

Vodprogram table
Id int 4
Programtitle varchar 200
Programdesc varchar 8000
Promotion int 4/* Recommended directory or not */
Imageurl varchar 200
Programurl varchar 200
Vodcategoryid int 4

 

Note that we want vodcategory to be configured with vodprogram but cannot provide such a relationship in SQL 2000. Therefore, we need to introduce an intermediate table between vodcategory and vodprogram, to provide the relationship between the two parties.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.