I wouldn't store them in the database. 2009/4/11 DK-Warder <[email protected]>
> > Only one instance (one record) should be stored in DB. My class > contains set of settings for application. Several sets of settings > make no sense. > > On 11 апр, 22:28, Paco Wensveen <[email protected]> wrote: > > I use my IoC container to store a class as singleton. > > When you use a "unit of work" in your repositories, you can't store them > as > > singletons. > > I don't store anything as singleton unless it is needed for performance > > optimization. > > An example you might know is the NHibernate sessionfactory that takes 5 > > seconds or more to initialize. > > > > On Sat, Apr 11, 2009 at 4:25 PM, DK-Warder <[email protected]> wrote: > > > > > I want to store only one instance of class. What best practicies? What > > > i should do with Id, with Repositories? > > > > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
