Please,give tutorial on IDataAdapter,IDatabase,IDbConnection.
Thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 2, 2012, 5:15 AM EDT
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.