B
Bill Gower
I am currently reevaluating how I do look ups and searches. What is the
best method for handling forms where user can search by different criteria.
Example, A member form allows users to look up a member by either SSN,
Lastname + firstname (whole or partial), all active or inactive or by an
office. Should I have multiple Get Methods such as
GetMemberBySSN()
GetMemberByMemberName()
GerMemberByOffice()
GetMemberByStatus()
GetMemberByStatusOffice()
or
GetMemberWithCriteria(string criteria) and then append the criteria string
to a WHERE clause.
Bill
best method for handling forms where user can search by different criteria.
Example, A member form allows users to look up a member by either SSN,
Lastname + firstname (whole or partial), all active or inactive or by an
office. Should I have multiple Get Methods such as
GetMemberBySSN()
GetMemberByMemberName()
GerMemberByOffice()
GetMemberByStatus()
GetMemberByStatusOffice()
or
GetMemberWithCriteria(string criteria) and then append the criteria string
to a WHERE clause.
Bill