Re: advice on best practice
I'm not sure that I understand your situation fully. But what I will say is that for me, I use a design taken from Java which is the MVC design - model, view and controller. The model classes / project deals with only the data access layer. The view deals with the interaction with the user e.g. forms, jsps etc. And the controller deals with the interface classes between the view and the model. In java this goes to servlets etc. I use the same approach in C# where I separate these three layers and up to date have not gotten much problems with it. Looking back at your post, I think you did something similar to the MVC concept so I dont know if this answer your question, but its my view. As of design, there are a lot of methodologies out there, just have to choose the best one.
And nice use of the word sexier.
Jennifer
Re: advice on best practice
Thanks for replying Jennifer.
That's very helpful. What are you doing to dynamically control the database connection strings? Here, I need to be able to point to a development server OR production server at runtime. Someone suggested using the config files and simply put in all known connection strings and during the login process, make a determination of what connection string to use. Then, when a call to a database is made, simply pass in that string each time.
I question the efficiency of that. It certainly sounds like it would work but I'm hoping I could get some more ideas :D
Thanks again!!
btw, I have everyone at my office now saying 'sexier' when referring to code LOL
Re: advice on best practice
Have a singleton class - or suchlike - that you initialise with the correct connection string - then your data access layer can use this object to reference the connections string.