不知道我在做什么错。谁能帮忙。甚至不确定我是哪个参数出现此错误。
var sql = @"
UPDATE Test_Tem_Table SET
SOFTCLSD_IND = :SOFTCLSD_IND
, SOFTCLSD_DT = :SOFTCLSD_DT
, SOFTCLSD_BY = :SOFTCLSD_BY
, SOFTCLSD_COMMENT = :SOFTCLSD_COMMENT
, SOFTCLSD_LASTUPDT_BY = :SOFTCLSD_LASTUPDT_BY
, SOFTCLSD_LASTUPDT_DT = :SOFTCLSD_LASTUPDT_DT
WHERE PREFIX_CB_ELIG_ID = :PREFIX_CB_ELIG_ID";
var param = AdoTemplate.CreateDbParameters();
param.Add("SOFTCLSD_IND", System.Data.OracleClient.OracleType.Char).Value = DBUtils.ConvertBoolToYN(currentSoftClose.IsSoftClosed);
param.Add("SOFTCLSD_DT", System.Data.OracleClient.OracleType.DateTime).Value = ((DateTime)currentSoftClose.SoftClosedDate).Date;
param.Add("SOFTCLSD_BY", System.Data.OracleClient.OracleType.VarChar).Value = currentSoftClose.SoftClosedBy;
param.Add("SOFTCLSD_COMMENT", System.Data.OracleClient.OracleType.VarChar).Value = currentSoftClose.Comments;
param.Add("SOFTCLSD_LASTUPDT_BY", System.Data.OracleClient.OracleType.VarChar).Value = currentSoftClose.SoftClosedLastUpdatedBy;
param.Add("SOFTCLSD_LASTUPDT_DT", System.Data.OracleClient.OracleType.DateTime).Value = currentSoftClose.SoftClosedLastUpdatedDate == null ? (DateTime?)null : ((DateTime)currentSoftClose.SoftClosedLastUpdatedDate).Date;
param.Add("PREFIX_CB_ELIG_ID", System.Data.OracleClient.OracleType.Number).Value = currentSoftClose.Id;
return AdoTemplate.ExecuteNonQuery(CommandType.Text, sql, param);