Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Reuse of Typed Dataset for different project
 

Reuse of Typed Dataset for different project

Hai

How i can re-use typed dataset for different project,

pls explain,

backer  Wednesday, March 12, 2008 5:14 PM
Implement your typed dataset in class library project. As it will be compiled into a dll file, you will be able to add reference to that dll file from any program you need.
Giorgi Dalakishvili  Wednesday, March 12, 2008 8:02 PM
Implement your typed dataset in class library project. As it will be compiled into a dll file, you will be able to add reference to that dll file from any program you need.
Giorgi Dalakishvili  Wednesday, March 12, 2008 8:02 PM

thanks for ur replay, itsok, but when use the dataset.dll how i can change the connection string of tableadapters, because tableadapters connection is private then we cannot change this property value.

pls explain how to use

backer  Thursday, March 13, 2008 5:00 AM
Use configuration file to store connection string for the tableadapters. Change tableadapters so that they read connection string from the config file. In this case you won't have to recompile your assembly every time you change connection string, you can just change it in config file.
Giorgi Dalakishvili  Thursday, March 13, 2008 7:37 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView - selected row in new form
• Add a TextBox Control to DataGridView
• Is there an easy way to transpose a Datagridview?
• Map ftp folder as Virtual Drive using c#
• DataGridView
• Timer problem with windows service
• How to package and deploy Sql Server Express Edition Database
• Close Button
• subclassed DataGridView OnCellValueChanged weird stuff
• linkLabel column in datagrid