-
[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.
-
Re: CRUD codes
What do you mean "where"?
-
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.
-
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.