Head A C # Chinese version (PAGE18)

Source: Internet
Author: User

We need a database to store our information. Before adding the remaining fields to the form, we need to create a database to connect to the form. The IDE creates a lot of code to connect the data to our form, but we still have to create the database itself first.

1 Add an SQL database to your project

In the Solution Explorer, right-click the Contacts item, select Add, and then select New Item. Select the SQL database icon and name it contactdb.mdf.

2 Cancel the Data Source Configuration Wizard. Now, we want to skip the step of configuring the data source, so click the Cancel button. We go back to this step as soon as we have the database structure set up. 3 View your database in the Solution Explorer.

In the Solution Explorer you will see that CONTACTDB has been added to the file list. Double-click Contactdb.mdf to see the left side of your screen. The Toolbox has become a database browser.

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.