Line #2 in the following code generates an error; what am I doing wrong?
Error 1 The best overloaded method match for
'Microsoft.Appl icationBlocks.D ata.SqlHelper.E xecuteDataset(s tring,
System.Data.Com mandType, string)' has some invalid arguments
Code:
Line #1 System.Data.Dat aSet dsCust = new System.Data.Dat aSet();
Line #2 dsCust = SqlHelper.Execu teReader(sqlCon nection,
CommandType.Tex t, "SELECT * FROM Customer");
Error 1 The best overloaded method match for
'Microsoft.Appl icationBlocks.D ata.SqlHelper.E xecuteDataset(s tring,
System.Data.Com mandType, string)' has some invalid arguments
Code:
Line #1 System.Data.Dat aSet dsCust = new System.Data.Dat aSet();
Line #2 dsCust = SqlHelper.Execu teReader(sqlCon nection,
CommandType.Tex t, "SELECT * FROM Customer");
Comment