Results 1 to 4 of 4

Thread: [Solved] CRUD codes

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    [Solved] CRUD codes

    Where do you often put the .Create() .Read() .Update() .Delete() operations of your class? Say, I have Section class and I need it to save it to the database. I got no worries in saving it coz I use NHibernate (just basics though). But I'm kinda worried on where to put the .Create() .Read() ... methods. Any help is greatly appreciated.
    Last edited by nebulom; Jun 2nd, 2006 at 04:26 AM.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: CRUD codes

    What do you mean "where"?
    I don't live here any more.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: CRUD codes

    Say, I have an Article class, that shouldn't be where the CRUD codes written. I could have an Observable Article or Article data access, so I'm kind of thinking what layer should the CRUD be.

    But I guess I am looking at NHibernate and I guess it's a good persistent layer. Thanks, btw.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: CRUD codes

    In the DAL. The class will still need to make a call to the methods in the DAL to perform the CRUD.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width