C# 调用存储过程

Posted on   哥德巴赫猜  阅读(165)  评论(0编辑  收藏  举报

 //try
            //{
            //    string proName = "uSP_Sample_GetSampleInfo";
            //    OracleParameter[] parameter = {
            //                             new OracleParameter("p_starter",OracleType.VarChar),
            //                             new OracleParameter("p_ShowColumnDescrption",OracleType.Int32),
            //                             new OracleParameter("p_SampleCursor",OracleType.Cursor)
            //                             };
            //    parameter[0].Value = userName;
            //    parameter[1].Value = 0;
            //    parameter[2].Direction = ParameterDirection.Output;
            //    return OracleHelper.QueryByProc(proName, parameter);
            //}
            //catch (Exception ex)
            //{
            //    LogHelper.Error("error in  GetSampInfo" + ex.ToString());
            //    return null;
            //}

随笔 - 13, 文章 - 39, 评论 - 1, 阅读 - 22891

Copyright © 2025 哥德巴赫猜
Powered by .NET 9.0 on Kubernetes

点击右上角即可分享
微信分享提示