Please,give tutorial on IDataAdapter,IDatabase,IDbConnection.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sukesh MarlaPosted Sep 2, 2012, 9:15 AM
consider you have to write a generic method which can be used for bith Oledb and Sql at that time you cant use concrete classes like sqlconnection or oledbconnection.
Example:
public void getDataTable(string query,IConnection con){......}
Now you can call this function as
OledbCOnenction o=new OledbCOnnection("...");
SqlCOnnection s=new SqlCOnnection ("...");
getDataTable("Select * from emp",o);
getDataTable("Select * from emp",s);
Hope you understood and it helped you, check this is correct answer if it does.