A
Alexander Widera
Hi,
I have a database with 40000 articles... (it is a shop) ... there are
columns like price, stock, name, short description, long description etc....
the long description could be really much text.
How would you programm the connection to the database in a shopapplication?
1. DataSet with all articles (and all data) in it for every user of the
webpage?
2. Class "article" (with properties price,stock,name,... )
2.1. get the values of the properties on first use (connect everytime for
every property to database and fetch it)
2.2. get all values for the article in advance (on creation of an object of
the class)
3. another (which?) way?
Which solution would you choose?
Thanks a lot
alex
I have a database with 40000 articles... (it is a shop) ... there are
columns like price, stock, name, short description, long description etc....
the long description could be really much text.
How would you programm the connection to the database in a shopapplication?
1. DataSet with all articles (and all data) in it for every user of the
webpage?
2. Class "article" (with properties price,stock,name,... )
2.1. get the values of the properties on first use (connect everytime for
every property to database and fetch it)
2.2. get all values for the article in advance (on creation of an object of
the class)
3. another (which?) way?
Which solution would you choose?
Thanks a lot
alex