Re: Persistent objects
From: LC (lctech_at_terra.cl)
Date: 04/05/04
- Next message: Vangelis: "How to retrieve a computer comment over the network?"
- Previous message: William Stacey [MVP]: "Re: Mutex and messages"
- In reply to: Fitim Skenderi: "Re: Persistent objects"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 13:26:05 -0400
Thanks Fitim.
LC
"Fitim Skenderi" <fitims@hotmail.com> wrote in message
news:%23zljAPyGEHA.3360@TK2MSFTNGP12.phx.gbl...
> Check the book called "Patterns of Enterprise Application Architecture"
> written by Martin Fowler. It is a great book. Another good book is ".NET
> Patterns" (can't remember the author).
>
> I personally use a set of patterns. I use a modified version of Mapper
> (PEAA- book above) for persisting business objects, an Abstract Factory
> (GOF) for creating mappers, and my factory is a Singleton (GOF) as well.
>
> Fitim Skenderi
>
>
>
> "LC" <lctech@terra.cl> wrote in message
> news:%238MH%23ByGEHA.2980@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > Anybody have a design pattern to implement persistent objects. I need to
> > persist my business objects. Something like this code examples:
> >
> > //to create a new one
> > Document doc = new Document("my first document", DateTime.Now);
> > doc.Save();
> > ...
> > //to open and edit an existing one
> > Document doc = new Document(DocumentId);
> > doc.Copies = 25;
> > doc.Save();
> > ...
> > //maybe using lazy initialization when reading
> > Document doc = new Document(DocumentId);
> > Datetime authorBirthdate = doc.Author.Birthdate;
> >
> > Thanks,
> > LC
> >
> >
>
>
- Next message: Vangelis: "How to retrieve a computer comment over the network?"
- Previous message: William Stacey [MVP]: "Re: Mutex and messages"
- In reply to: Fitim Skenderi: "Re: Persistent objects"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|