我在类A中定义了2个方法
public virtual byte[] ExecuteDataSet(
string connectionString,
DBType dbType,
string sp_name,
CommandType cmdType)
{
DbAccess dba = new DbAccess(connectionString, dbType);
if(this.report_source == null)
{
this.report_source = new DataSet();
}
dba.GetDataSet(sp_name, cmdType,null, this.table_name, this.report_source);
return CreateReportDataSource.GetReportdataSource(this.report_source, this.report_path);
}
public virtual byte[] ExecuteDataSet(
string connectionString,
DBType dbType,
string sp_name,
CommandType cmdType,
params object[] arguments)
{
DbAccess dba = new DbAccess(connectionString, dbType);
this.report_source = dba.GetDataSet(sp_name, cmdType, this.table_name, arguments); return CreateReportDataSource.GetReportdataSource(this.report_source, this.report_path);
}
调用第一个方法时没有问题,调用二个方法(5个参数)时给出的错误提示信息如下:
Method not found: System.Data.DataSet Punoja.Data.DbAccess.GetDataSet(System.String, System.Data.CommandType, System.String, System.Object[]).
请问该如何解决?
public virtual byte[] ExecuteDataSet(
string connectionString,
DBType dbType,
string sp_name,
CommandType cmdType)
{
DbAccess dba = new DbAccess(connectionString, dbType);
if(this.report_source == null)
{
this.report_source = new DataSet();
}
dba.GetDataSet(sp_name, cmdType,null, this.table_name, this.report_source);
return CreateReportDataSource.GetReportdataSource(this.report_source, this.report_path);
}
public virtual byte[] ExecuteDataSet(
string connectionString,
DBType dbType,
string sp_name,
CommandType cmdType,
params object[] arguments)
{
DbAccess dba = new DbAccess(connectionString, dbType);
this.report_source = dba.GetDataSet(sp_name, cmdType, this.table_name, arguments); return CreateReportDataSource.GetReportdataSource(this.report_source, this.report_path);
}
调用第一个方法时没有问题,调用二个方法(5个参数)时给出的错误提示信息如下:
Method not found: System.Data.DataSet Punoja.Data.DbAccess.GetDataSet(System.String, System.Data.CommandType, System.String, System.Object[]).
请问该如何解决?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货