I am working on an App (VB.NET) for my company that retrieves data from a DB about our products (sensors) to make measurements and calibrations.
The DB is part of a software we use, so I have only read access and can't modify in any way it.
At the moment the solution is organized as follows:
- BusinessLogic (DLL)
- Entity (DLL)
- DBAcess (DLL)
- UI (WinForms)
- Test Folder (with a unittestproject for each solution project)
In DbAccess I only have one class which is responsible to retrieve the data and also to parse it, since I need to do some work, to prepare the retrieved data for creating my business objects (sensor and measuringCell).
Should I refactor this class in 2 like DbQuery and DbQueryParser or should I declare the "parsing"-method as Shared and leave them in the class?
At this points I always have problems to recognize if I am breaking the SRP, since DbQuery is responsible to retrieve data from the db, but just retrieve data or retrieve data and return it in the way I need it?