Re: OO DB question



"Chris" <misterjingo@xxxxxxxxxxxxxxx> wrote in message
news:Intrf.32011$vl2.11600@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I had a OO model worked out which involved forms populating new instances
>of a class and being stored in an ArrayList. I'm now moving this over to a
>DB backend rather than a file - I've been wondering if I even need to
>create objects now? Could I just work directly with the DB e.g. form data
>will pass directly to db handled in click events, the listview of objects
>can be read straight from db (no need to instantiate classes).
> I guess I'm after opinions on what others would do in these circumstances.
> Would it be ok to interact directly with the DB, or should I use the class
> instances as interfaces to the DB through their properties? Would this
> mean I'd just instantiate a class to pass data to and from DB and then
> dispose of it? Or keep one instance of each class to act as an interface?
>
> Any opinions would be appreciated,
>
> Chris
>
> Ps Merry Christmas
>

Just to clarify, when I say create objects, I originally had objects for
each form (a diary page) which stored all the text and options. This was
placed in an ArrayList and output to a file on saving.

Chris


.



Relevant Pages

  • OO DB question
    ... I'm now moving this over to a DB ... Could I just work directly with the DB e.g. form data will pass ... I guess I'm after opinions on what others would do in these circumstances. ... instances as interfaces to the DB through their properties? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Allowing POP email retrieval
    ... POP3 email is widely used in many corporations, ... opinions and haven’t found much. ... still welcome the opinions of others, including yours Chris, on this ... >> seems there should be the ability to require authentication. ...
    (microsoft.public.windows.server.sbs)
  • Re: "Day by Day" by Chris Muir critiqued
    ... gives her opinions of conservative cartoonist ... Chris Muir's comic strip in an assessment titled ... apparent death of an al Quaeda leader at the hands of Sunni insurgets ...
    (rec.arts.comics.strips)
  • Re: Bring me up to date on SAA, please.
    ... Chris L Peterson: ... were slaves to robber barons. ... reasonable people can have different opinions. ...
    (sci.astro.amateur)
  • Re: Bill Chen Cheats at WSOP and brags about it
    ... Chris in Texas wrote: ... and so they decided to ask their friends for opinions. ... Unlike anyone else in this discussion (AFAIK), ...
    (rec.gambling.poker)

Loading