Solution-wide Datasets in C# WinForms (.net 4.x)

  • Thread starter Thread starter Romiko GNCC
  • Start date Start date
R

Romiko GNCC

Guest
I have just transformed my solution from vs2008 .net 3.5 to vs2013 .net 4.5.1. Not, as I am optimizing the whole staff, I wanna separate DataBase and the other logic to separate projects within current solution.

I did it, named a new project DataBase and the rest project names stayed unchanged. As database project compiles like an dll, I am able to use all DataSets in all projects in this solution, BUT: when I navigate to DataSource explorer in vs2013 interface - nothing is present there - I have to manually create all datasets referencing to database project, manually create all adapters and staff to include them in windows form.... Is like a pain in the .....

What I managed to do somehow was to create temporary windows form in database project, drop what i want to that for - designer creates datasets and adapters automatically, and then cut/paste them to the other project. Rough and artificial way....

So, help needed it terms of the best practice in this situation. The goal is to have a solution-wide datasets accessible for ALL projects in natural way - through dataset explorer window in visual studio.

Any help will be appreciated.... totally confused....

Continue reading...
 
Back
Top