Experiences in adding datasets for existing projects

Source: Internet
Author: User

If you encounter such a task some time ago, You need to merge two projects into one project, add the form and dataset of Project B to project a, and then open the form of B through Project.

The previous progress was very smooth. When adding a dataset, the system prompts "the typed dataset will not be compiled. Please open the data in the Dataset Designer, check that each tableadapter has been set to a valid connection! ", The code for opening the form in B is not mentioned. At this time, if you compile the form directly, many errors will be displayed, about the failure to find the connection string...

How can this problem be solved?

  • Open the properties -- settings. Setting file in Project B, and you will see a connection string in it. Copy all the content in it.
  • Open the file of Project A and paste the copied content.

Re-compile, there will still be errors, such as dataset not found ....

Change all the namespaces about Project B to. Compiled ....

Experiences in adding datasets for existing projects

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.