lundi 14 mars 2016

Domain Driven Design - Domain Singleton

It's a bad idea to create a singleton when we are using ddd?

I'm thinking of creating two of them, one for global settings (which are saved in the database) and the other for local settings (which are saved in the Windows Registry in my application windows forms).

If singletons in ddd is acceptable, where and when should I fill them with the stored values?

Aucun commentaire:

Enregistrer un commentaire