Greetings all.
I need to get some opinions from those outside of my work environment to see if I can get a good general consensus on project design.
We have programmed a database DLL for our department, this DLL can get the SQL Connections, build DataTables, DataSets, Execute Sql Commands, build readers etc. it basically takes all basic methods for DB connectivity and wraps them up into one DLL so everyone uses the same DLL and works consistently with it instead of having everyone making their own connection class. Which can get problematic.
We are also trying to push into OOP, and in doing so we are not allowing people to use modules. But in my mind a module might be the best fit for a object reference for this DLL since it will be shared throughout an entire project where as we will have to basically create a new instance of the DB object. Each class would have to have it's own DB object, and this is where the overhead comes in, why bother having 8 different Sql Connection objects going for each class when you can use a shared one through a module. Unless we run through inheritance and have it at the base level of all inheritance levels.
Basically is there some other way I'm not thinking about? I'm just fishing for some ideas.
Thanks guys!