在我使用游标的存储过程中,我得到了结果,但是当我尝试将该值放入表中时,我无法得到它。请帮帮我。
这是我的C#代码
string sql = "ForTaxReport";
tdsTPDPay.TaxReportRow dataRowLog = new tdsTPDPay.TaxReportDataTable().NewTaxReportRow();
if (base.Transaction != null)
{
base.Command = new SqlCommand(sql, base.Connection, base.Transaction);
}
else
{
base.Command = new SqlCommand(sql, base.Connection);
}
base.CommandType = CommandType.StoredProcedure;
base.Parameters.AddWithValue("@PayrollDate", GetNull(date));
base.Parameters.AddWithValue("@ID", GetNull(ID));
base.OpenConnection();
SqlDataAdapter adp = new SqlDataAdapter(base.Command);
tdsTPDPay.TaxReportDataTable dt = new tdsTPDPay.TaxReportDataTable();
adp.Fill(dt);
return dt;