Kevin Robinson
asked on
Data Objects
I am currently using data obejcts with something like the code below. I was going to try to seperate the "Contact" and the data access i.e the load contact etc . Is this a recomended apporach is there a particular pattern for this.
Sorry for the vague questions just need some direction on this.
Class Contact
Property Firstname as String
Property Surname as String
Public Function LoadContact(ContactID as integer) as Contact
End Sub
Public Function LoadContacts(OrgID as integer) as BindingList(of Contact)
End Sub
Public Sub UpdateContact(Contact as Contact)
End Sub
End Class
End Sub
Sorry for the vague questions just need some direction on this.
Class Contact
Property Firstname as String
Property Surname as String
Public Function LoadContact(ContactID as integer) as Contact
End Sub
Public Function LoadContacts(OrgID as integer) as BindingList(of Contact)
End Sub
Public Sub UpdateContact(Contact as Contact)
End Sub
End Class
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER