I am currently designing an application (.Net WinForms) that needs to access a database (SQL Server).
Using the datasource wizard, Visual Studio automatically creates the dataset, tables and classes for rows:
For example if I have the Customers table the wizard will create “CustomersRow” class that inherits from Global.System.Data.DataRow with the corresponding fields as properties.
In my application I need to implement other methods and attributes for the Customers class.
How to deal with these generated classes, modify them by adding methods.. or ignoring them and implement my own business classes?
A second question:
How to populate my objects (eg list of customers?)
Do you suggest using datatables / dataset and their methods or build my own data access layer and I meet the client list (of customers)?
I found some patterns when searching the net but it is not precise.
Thanks
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









