还有另一种解决方法吗? 我发现这件作品
DbCommand comm = db.GetStoredProcCommand(usp_Script_Update);
db.AddInParameter(comm, "v_ID", DbType.String, WindowsGuid2OracleGuid(script.ID));
db.AddInParameter(comm, "v_Name", DbType.String, script.Name);
db.AddInParameter(comm, "v_Description", DbType.String, script.Description);
((OracleDatabase)db).AddParameter((OracleCommand)comm, "v_ScriptValue", OracleType.NClob, script.ScriptValue.Length,
ParameterDirection.Input, true, 0, 0, "ScriptValue", DataRowVersion.Default, script.ScriptValue);
答案 0 :(得分:1)
DbType.StringFixedLength