using a class for DBhandling - HELP
HI,
I am new to ADO.NET. Well I know how to do a connection but someone has advised me to do a class where to put all my database handling. I have done a class that has a class as a parameter.
Now my problem is how I will call this class from the form .
Example my class in called DbHandling and has a Public Shared Add(By val pp as Personal) where personal is a class having field table related members.
Now how do I associate the textbox.text with the field values in the DbHandling class??
Hope made myself clear. any help please.
Re: using a class for DBhandling - HELP
Use this on your page
Public ConnectToMYClass as DbHandling = new DbHandling
then to call a class function or sub use:
ConnectToMYClass.Add(...)
Hope that helps ;)