G
Guest
I am designing a web application in asp.net C#, and I created classes (in
..cs files) working with the .aspx pages. Now, for database part....
wondering which way is better:
1. put database connectivity in the Classes, each class has the load/save
data method? Many of my classes are inherited from each other, and since I
am using SQL 2000 which is a relational database makes the job little bit
more complicated.
2. put database connectivity in .aspx pages, then get/put the data from/into
the classes when needed? This sounds easier, but is it a bad design?
Any suggestions are welcome.. thanks
..cs files) working with the .aspx pages. Now, for database part....
wondering which way is better:
1. put database connectivity in the Classes, each class has the load/save
data method? Many of my classes are inherited from each other, and since I
am using SQL 2000 which is a relational database makes the job little bit
more complicated.
2. put database connectivity in .aspx pages, then get/put the data from/into
the classes when needed? This sounds easier, but is it a bad design?
Any suggestions are welcome.. thanks