|
-
May 24th, 2006, 07:48 PM
#1
Thread Starter
Fanatic Member
[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.
-
May 31st, 2006, 02:06 PM
#2
Re: CRUD codes
What do you mean "where"?
I don't live here any more.
-
May 31st, 2006, 09:03 PM
#3
Thread Starter
Fanatic Member
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.
-
Jun 1st, 2006, 05:32 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|