Solved

How do I copy a Typed Dataset to another project

Posted on 2007-12-04
3
1,570 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
3 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
Comment Utility
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
Comment Utility
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
Comment Utility
The component I had missed was the change in name space.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now