Re: Persistent objects

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: LC (lctech_at_terra.cl)
Date: 04/05/04


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
> >
> >
>
>



Relevant Pages

  • Re: Has anyone used design patterns in his/her C#.NET project?
    ... used in designing my software system. ... Although I read the entire book about Design Pattern, ... I never have had any use for factory patterns that I have rolled my ...
    (microsoft.public.dotnet.general)
  • Re: Has anyone used design patterns in his/her C#.NET project?
    ... used in designing my software system. ... Although I read the entire book about Design Pattern, ... You should learn how to use one of these two patterns. ... I never have had any use for factory patterns that I have rolled my ...
    (microsoft.public.dotnet.general)
  • Re: New software to use Design Patterns
    ... Two patterns are defined, with no text associated with them. ... "Tools->Merge Design Pattern" in order to add a design pattern to the ... Composite abstract class to inherit from the Builder abstract class, ... Deciding that I didn't want to keep that inheritance link, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Konsequente Schichtenmodellentwicklung
    ... Patterns of Enterprise Application Architecture von Martin Fowler ist empfehlenswert. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Has anyone used design patterns in his/her C#.NET project?
    ... used in designing my software system. ... Although I read the entire book about Design Pattern, ... You should learn how to use one of these two patterns. ... I have used factory patterns in a framework like CSLA, which is the only time I have seen factory patterns in use, in many years of doing object oriented programming. ...
    (microsoft.public.dotnet.general)