Hi, I am creating a data access layer through Visual Studio 2005 (dataset in appcode folder) for my asp.net (vb.net based) application connected with SQL server 2005 db.
I have already created easy tableadapters for brands, categories tables. Right now I am creating Product tableadapter for product table. The product table is inter-related to many other tables like colors, materials, features, photos, articles, measurements, etc.
My question is:
Do I need to create basic Getdata() function configured only for product table with all insert, update & delete queries and then seperate queries like
GetProductsByBrandID(), GetProductsByColorID() like those which involves table joins and sub queries?
or
Do I need to create Getdata() function configured with insert, update & delete queries which includes table joins and sub queries to all inter-related tables?
Anyway I need GetProductsByBrandID(), GetProductsByColorID(), etc. like those queries.
Pls advice.