Note that there are some explanatory texts on larger screens.

plurals
  1. USAndres
    primarykey
    data
    text
    plurals
    1. CO@DiegoMijelshon I added extra information to the question. May be you will understand a little bit more my approach. Maybe my usage or architecture is wrong, but it's easy to work with my business logic if I ask for a message to the object and the object knows how to resolve the connection to the database. I mean the objects knows the connection data but a DAO/Repository use it to connect to the database. It´s a Desktop app.
      singulars
    2. CO@DiegoMijelshon : Maybe you are right. If I have a lot of objects loaded from the same session, those object remains in the cache?. Is that not expensive?. What happens if I don´t want to maintain those objects in the cache (a lot of objects does not change frequently). I also have objects that are volatile (load a report in "real time" and display that data a few seconds, then the displayed data changed) that what I don´t want to manitain in the cache.
      singulars
    3. COKind of. I create objects using a customFactoroty. MyClass myclass = MYFactory.CreateObject<MyClass>(). MyFactory has the connection information (previosly assigned) and when instantiate a class, injects the connection data using property (and reflection). The object has a baseProperty MyconnectionSettings.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload