Make property or directly execute query?

qadeer37

Well-known member
Joined
May 1, 2010
Messages
63
Location
Hyderabad,pakistan
Programming Experience
1-3
Public Class Customer
Private m_CID As Integer
Private m_FirstName As String
Private m_LastName As String
Private m_EmailAddress As String
Private m_Balance As Decimal
Private m_Password As String

'want to add Order ID to create relation with orders.
Private m_OID As Integer

public sub Order
Private m_OID As Integer
Private m_CID As Integer
Private m_PID As Integer

My question is that do I need to add an OID in customer class or I can directly send a query to customer table when ever an order is made.
:confused:
 
Read the DW3 link in my signature, first "Creating a Simple Data Application" then "Displaying Related Data"
 
Back
Top