如何将System.Data.IDbConnection转换成SqlConnection ?
暗石绿 2003-08-07 09:18:36 (“转换”是不是用错词汇了。。。)
public override IDbConnection Connection
{
get{return this.sqlConn;}
}
sqlCmd = new SqlCommand( strSelect, db.Connection);
不认 db.Connection ........
C:\Inetpub\wwwroot\WebService1\BasicInfo\Service_Goods.asmx.cs(93): 参数“2” : 无法从“System.Data.IDbConnection”转换为“System.Data.SqlClient.SqlConnection”
谁能告诉我应该怎么办?