Microsoft. NET Pet Shop 4.0 learning Tour (1)-database field type and real-layer (model) Data Structure

Source: Internet
Author: User

Microsoft. NET Pet Shop 4.0 learning Tour (1)-database field type and real-layer (model) Data Structure

1. lists the types of all fields in the pet shop 4.0 database.
2. lists the corresponding data structures in the model of pet shop 4.0.
3. Sort out the corresponding relationship graph.

. Net Pet Shop 4.0
Column Datatype Length Allow null C # model datatype
Orderid Int 4 Int
Itemid Varchar 10 String
Eventid Char 32 String
Message Nvarchar 1024 V String
Details Ntext 16 V String
Orderdate Datetime 8 Datetime
Unitprice Decimal 9 (10, 2) Decimal
Isanoymous Bit 1 Bool
Roleid Uniqueidentifier 16 ?
Propertyvaluesbinary Image 6000 ?

Summary:
The design of the database, and the structure of the actual layer will give priority to the above types.
Key data structures: int, String, datetime, decimal, bool.

Note! In blogCommunityOther than reprinted, must note:
By Clark Chan
And Source: http://clarkchan.cnblogs.com/
Otherwise, reprint is declined!

//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////

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.