DeanConsulting
Programmer
Which is best practice:
Create class that maps a piece of data for a database. This would be properties only. (i.e. fields in the datbase table).
Then create a new class and inherit the class from above (the on that contains just the properties) and add the CRUD code to the new classclass.
or...
Do it all in the same class.
---------------------------------------
Noble D. Bell
Create class that maps a piece of data for a database. This would be properties only. (i.e. fields in the datbase table).
Then create a new class and inherit the class from above (the on that contains just the properties) and add the CRUD code to the new classclass.
or...
Do it all in the same class.
---------------------------------------
Noble D. Bell