Class and database
Posted on 2007-10-04
Here is a snip of the Task class.
I need to work with a DeveloperID and also the Developer's Name
When displaying to UI, I need to show the developer's, but when working with the database I need the developerid
Currently, the task class with get filled with data from the database and my
sql query only has the developerid.
Should I modify the query to include the the developer's name? (I would need to create a join and then pull from the
Or should I achieve this another way?
Why or why not?
Public Class Task
Public ReadOnly Property TaskID() As Integer
Public ReadOnly Property ProjectID() As Integer
Public ReadOnly Property DeveloperID() As Integer