SharkTooth
Programmer
I created some business objects, for this example a "User" class. User handles everything related to a user, including database transactions (updates, deletes etc.). When I instantiate a new user it goes to the database and loads itself.
Here is my question:
When I load a datagrid I provide the datasource with some kind of collection. I want to utilize my “User” class here so that I can maintain a consistent environment where everything involving user is handled through a “User” object.
What is the right way to handle this? The thought of actually creating a collection of “Users” seems a little extreme. Is that my only option?
Any ideas on the best way to handle this would be appreciated.
Thanks!
Here is my question:
When I load a datagrid I provide the datasource with some kind of collection. I want to utilize my “User” class here so that I can maintain a consistent environment where everything involving user is handled through a “User” object.
What is the right way to handle this? The thought of actually creating a collection of “Users” seems a little extreme. Is that my only option?
Any ideas on the best way to handle this would be appreciated.
Thanks!