G
Guest
Hi
I'm writing a datalayer for a C# application. Currently, I've implemented it using the following main components
- An interface called IDataAcces
- A singleton object called DataAccess implementing that interface
- A static class called SqlQueryBuilder which is used by DataAccess to build dynamic SQL queries
- A static class called SqlWorker which is used by DataAccess to execute SQL queries
- A static class called DBAccess which delivers database connections to SqlWorker
Is this a decent architecture? I'm kind of thinking it's not very object oriented... but is that a problem? If so, why? Any thoughts would be greatly appreciated!
I'm writing a datalayer for a C# application. Currently, I've implemented it using the following main components
- An interface called IDataAcces
- A singleton object called DataAccess implementing that interface
- A static class called SqlQueryBuilder which is used by DataAccess to build dynamic SQL queries
- A static class called SqlWorker which is used by DataAccess to execute SQL queries
- A static class called DBAccess which delivers database connections to SqlWorker
Is this a decent architecture? I'm kind of thinking it's not very object oriented... but is that a problem? If so, why? Any thoughts would be greatly appreciated!