Solved

How do I copy a Typed Dataset to another project

Posted on 2007-12-04
3
1,653 Views
Last Modified: 2011-09-20
Greetings,

I have a complex Typed Dataset that I created in a Visual Studio 2005 C# project.

I would like to copy this typed dataset to and use it in another project.

What is the best way to do this?

Bob
0
Comment
Question by:bobsegrest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 20409267
when you create a typed dataset, it create 3-4 files. The only important file is .designer file which contains classes. You can add a new code file, name it to <dataset>.cs and copy the contents of .designer file to it. Now delete the original dataset (it deletes all the relevant files).
You can now use the code file as a dataset.

hope it helps.
0
 
LVL 7

Accepted Solution

by:
badbearontour earned 500 total points
ID: 20409750
I usually copy all the files dataset files over to the new project

Then include the file in the new project.... open the dataset and close it again. that recompiles the classes code.

The only change then is to correct the namespace in the <dataset>.cs file to whatever it should be in the new application.

BB
0
 
LVL 13

Author Closing Comment

by:bobsegrest
ID: 31412749
The component I had missed was the change in name space.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question