Help validating in business logic layer

S

Steve

I have created a tableadaptor in VWD called
"MemberUsernameTableAdaptor" with a "GetUsername()" method.
The method requires the @username parameter and will then try matching
it up in the username field of a table. As the usernames are all
unique, if the username exists a 1 row dataset will be returned, if not
the dataset will be empty.

Now I want to use the DAL above to validate a username entered by a
user to see whether it already exists or not. It could be in the form
of a function which simply takes the parameter, checks whether a
username exists or not and then returns true or false.

I want to write the code for this validation in a business logic layer
..vb class. But I don't know how, as I am confused about the syntax.
This is my first time in trying to write code in a 3 layered structure.

Can somebody help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top