I have just inherited a web app written in c# with an Access database behind it. Prior to this, I was writing an app in ASP.NET using VB and SQL Server 2000 so maybe I'm biased but here goes:
The database is relatively small (22 tables) and the app uses OO wonderfully. However, as I'm trying to get my head wrapped around the thing, it seems like there is TONS of overkill (perhaps it is just a good DAL?). There is one class that handles data management (e.g. fills a dataset, updates the db, creates the adapter) and another class (let's call it mydataset.cs) that seems to just recreate the database as classes.
mydataset.cs creates a new class for each table. So, table1 would be 'public class table1data : DataTable' which then has each column instantiated as a private DataColumn.
So I guess I'm just looking for input. Is this reinventing the wheel to a laughable level or is it an awesome data access layer?
The database is relatively small (22 tables) and the app uses OO wonderfully. However, as I'm trying to get my head wrapped around the thing, it seems like there is TONS of overkill (perhaps it is just a good DAL?). There is one class that handles data management (e.g. fills a dataset, updates the db, creates the adapter) and another class (let's call it mydataset.cs) that seems to just recreate the database as classes.
mydataset.cs creates a new class for each table. So, table1 would be 'public class table1data : DataTable' which then has each column instantiated as a private DataColumn.
So I guess I'm just looking for input. Is this reinventing the wheel to a laughable level or is it an awesome data access layer?