I'm trying to solve the following problem. I have a base class which stores data, lets say for a Person. When a new Person is created, only some of those details will be filled in via a form i.e. Firstname, Lastname. When the person is saved to the DB, it also gets assigned an ID.
Class Person
Public Property ID As Integer
Public Property Firstname As String
Public Property Lastname As String
Public Property Age As Integer
Public Property Location As String
Public Property Gender As String
I also have a class called Task which will control the input of the remaining attributes of a person. A task is assigned to a User and requires them to complete a single attribute of the Person class.
Class Task
Public Property ID As Integer
Public Property ParentPerson As Person
Public Property AssignedUser As User
Public Property Attribute As String
I'm wondering how I can best achieve the ability to open a Task, load the textbox for the Attribute then save this back into the db?
Thanks in advance!