开发者

daab 5 update oracle NCLOB column

开发者 https://www.devze.com 2023-01-30 09:57 出处:网络
is there another way to fix this? i just find this works DbCommand comm = db.GetStoredProcCommand(usp_Script_Update);开发者_如何学JAVA

is there another way to fix this? i just find this works

DbCommand comm = db.GetStoredProcCommand(usp_Script_Update);开发者_如何学JAVA
        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);


DbType.StringFixedLength

0

精彩评论

暂无评论...
验证码 换一张
取 消