如果我在代码中面对null引用异常:
H * * * *
注意:
DBConnection ifx_conn = new DBConnection(con, false);
Dictionary<string, string> paramList1 = new Dictionary<string, string>();
paramList1.Add("from_date", from_date.ToShortDateString());
paramList1.Add("to_date", to_date.ToShortDateString());
string cmdText = "select * from permission where emp_num in( " + emplyeeRange + " ) and perm_date>=? and perm_date <=?";
DataTable permissionDT = ifx_conn.Return_DataTable(cmdText, CommandType.Text, paramList1);//The Exception
进行多次查询。我 DBConnection :
ifx_conn
可能导致此异常的原因是什么?以及失败后如何恢复?