daab 5更新oracle NCLOB列

时间:2010-12-15 03:17:26

标签: c# .net enterprise-library

还有另一种解决方法吗? 我发现这件作品

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);

1 个答案:

答案 0 :(得分:1)

DbType.StringFixedLength