I am working on a very nice namespace for a Company. I just finished the Exception Class Library and I am now starting on the Data Class Library.
What I was currently looking to do is to create a class that would create and return a connection object for a specific database.
I was going to create an enum of applications that I would make the connection. This is for an intranet only. At this time, a DB is connected using a generic user password. In the futur there will be a need to use windows authentication.
I've read an excellent question at:
I got some tips from there. And some code yet again from _TAD_ ;-)
I want somehting around this but my question is about the assemblies of this namespace. What would be the better solution to include the connections in the CLASS library? If I realease a DLL to reference I do not really want to ask user to add a config file. I would better want to have everything in the same assembly file.
The goal is to standardize the connectino in that case, using the namespace Company.Services.Data