marco.santilli
New member
- Joined
- Feb 28, 2008
- Messages
- 1
- Programming Experience
- 5-10
Hi to all.
I would like to create a 3 tier application in vb.net with sqlclient database connection, as follows:
1. One base class "DALBase" where I write all the functions I needed to make the connection, execute command, close connection with SQL server 2005 database;
2. One or more classes (DALObject1,... DALObject) that hinerits DALBase. I want to specialize these classes writing all the functions that get/set dataset and the SQL string;
3. One or more classes (BCLObject1, ... BCLObject) that create an instance of DAL class where I write all the functions visible to the presentation layer.
I found this sample in internet (http://www.santillimarco.it/files/varie/Patient.rar) using OleDB connection.
Can you suggest me some link where I can find a sample with sqlclient db connection???
i read that create a connection, popolate a dataset, close the connection will be better to use OleDB connection instead sqlclient connection.
it's right???
Thanks for your help
I would like to create a 3 tier application in vb.net with sqlclient database connection, as follows:
1. One base class "DALBase" where I write all the functions I needed to make the connection, execute command, close connection with SQL server 2005 database;
2. One or more classes (DALObject1,... DALObject) that hinerits DALBase. I want to specialize these classes writing all the functions that get/set dataset and the SQL string;
3. One or more classes (BCLObject1, ... BCLObject) that create an instance of DAL class where I write all the functions visible to the presentation layer.
I found this sample in internet (http://www.santillimarco.it/files/varie/Patient.rar) using OleDB connection.
Can you suggest me some link where I can find a sample with sqlclient db connection???
i read that create a connection, popolate a dataset, close the connection will be better to use OleDB connection instead sqlclient connection.
it's right???
Thanks for your help