G
Guest
I've been working with .NET for a while now, and have been straight-coding all my data access layers. I've seen a few tutorials about using the Component Class to drag-and-drop DataAdapters, Connections, etc. onto a component and it looks like this would be a quicker way to write the code.
However, my concerns are with the connection to the database. When you drag a connection onto the component class, it hardcodes my local workstation development database connection string into the class file (we don't develop against production servers). How can this be convenient when moving the app from my development machine, to the testing environment, and finally to a production server? Do I have to re-code the connection string into the component each time, or what am I missing? If there is an easy way to fix the connection string problem, does anyone know of any good C# tutorials on using this method of development?
Thanks...
However, my concerns are with the connection to the database. When you drag a connection onto the component class, it hardcodes my local workstation development database connection string into the class file (we don't develop against production servers). How can this be convenient when moving the app from my development machine, to the testing environment, and finally to a production server? Do I have to re-code the connection string into the component each time, or what am I missing? If there is an easy way to fix the connection string problem, does anyone know of any good C# tutorials on using this method of development?
Thanks...