Solved

How do I copy a Typed Dataset to another project

Posted on 2007-12-04
3
1,589 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
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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