Posted on 2011-02-28
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.
Property Firstname as String
Property Surname as String
Public Function LoadContact(ContactID as integer) as Contact
Public Function LoadContacts(OrgID as integer) as BindingList(of Contact)
Public Sub UpdateContact(Contact as Contact)