Sharing C# Program While Preserving Data Adapters
-
I'm running into a program successfully sharing a C# program with a fellow developer. We're each working on separate aspects of an application on our local drives, but sharing updates via a network. When we upload the C# application from the network, the DataAdapters for our projects need to be reconnected through the 'Configure Data Adapter' despite the fact that we hold the database for the project in the same location on our local drives. Is there a way to avoid that?
-
I'm running into a program successfully sharing a C# program with a fellow developer. We're each working on separate aspects of an application on our local drives, but sharing updates via a network. When we upload the C# application from the network, the DataAdapters for our projects need to be reconnected through the 'Configure Data Adapter' despite the fact that we hold the database for the project in the same location on our local drives. Is there a way to avoid that?
You should consider making the "location of the database" a config file setting. You can have a layered approach to config files such that there is a generic application config file and your user settings config file.