久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='3pbAe'></tfoot>
  • <small id='3pbAe'></small><noframes id='3pbAe'>

    <legend id='3pbAe'><style id='3pbAe'><dir id='3pbAe'><q id='3pbAe'></q></dir></style></legend>

          <bdo id='3pbAe'></bdo><ul id='3pbAe'></ul>

      1. <i id='3pbAe'><tr id='3pbAe'><dt id='3pbAe'><q id='3pbAe'><span id='3pbAe'><b id='3pbAe'><form id='3pbAe'><ins id='3pbAe'></ins><ul id='3pbAe'></ul><sub id='3pbAe'></sub></form><legend id='3pbAe'></legend><bdo id='3pbAe'><pre id='3pbAe'><center id='3pbAe'></center></pre></bdo></b><th id='3pbAe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3pbAe'><tfoot id='3pbAe'></tfoot><dl id='3pbAe'><fieldset id='3pbAe'></fieldset></dl></div>

        實體框架核心 5 - 從單個存儲過程返回兩個 orac

        ENTITY FRAMEWORK CORE 5 - Return two oracle cursors from single stored procedure(實體框架核心 5 - 從單個存儲過程返回兩個 oracle 游標)
      2. <small id='452hq'></small><noframes id='452hq'>

          <tbody id='452hq'></tbody>
            • <bdo id='452hq'></bdo><ul id='452hq'></ul>
            • <legend id='452hq'><style id='452hq'><dir id='452hq'><q id='452hq'></q></dir></style></legend>
            • <i id='452hq'><tr id='452hq'><dt id='452hq'><q id='452hq'><span id='452hq'><b id='452hq'><form id='452hq'><ins id='452hq'></ins><ul id='452hq'></ul><sub id='452hq'></sub></form><legend id='452hq'></legend><bdo id='452hq'><pre id='452hq'><center id='452hq'></center></pre></bdo></b><th id='452hq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='452hq'><tfoot id='452hq'></tfoot><dl id='452hq'><fieldset id='452hq'></fieldset></dl></div>
              <tfoot id='452hq'></tfoot>

                  本文介紹了實體框架核心 5 - 從單個存儲過程返回兩個 oracle 游標的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在開發一個調用 oracle 存儲過程的 API - 我無法觸及它 - 并返回兩個 refcursors.問題是,在我的代碼中,只有從 sp 返回的第一個游標 beign 被映射,而另一個游標則是 InvalidOperationException.

                  I'm working on an API that calls an oracle stored procedure -I can't touch it- and returns two refcursors. The problem is that in my code, only the first cursor beign returned from the sp gets mapped, while the other one trows an InvalidOperationException.

                  var sql = "BEGIN CCO_PKG_WHITDRAWREQUEST.OBT_OPCION_RET_DES_PRC(:pi_num_seguro_social , :pi_num_resolucion, :po_cur_valida_res, :po_cur_opciones); END;";
                  
                              var parameters = new OracleParameter[]
                              {
                                  new OracleParameter("pi_num_seguro_social", request.NSS),
                                  new OracleParameter("pi_num_resolucion", request.NumResolucion),
                                  new OracleParameter("po_cur_valida_res", OracleDbType.RefCursor, ParameterDirection.Output),
                                  new OracleParameter("po_cur_opciones", OracleDbType.RefCursor, ParameterDirection.Output)
                              };
                              
                              //This one gets mapped without problems.
                              var validaResCursor = await _context.CursorValidaRes.FromSqlRaw(sql, parameters).ToListAsync();
                              
                              //This one throws the exception.
                              var opcionesCursor = await _context.CursorOpciones.FromSqlRaw(sql, parameters).ToListAsync();
                  
                              var result = (opcionesCursor, validaResCursor);
                  

                  被映射的游標類

                      [Keyless]
                      public class ValidaResCursor
                      {
                          public string EsCVEValido { get; set; }
                          public string Opcion { get; set; }
                          public string Descripcion { get; set; }
                          public double SaldoA { get; set; }
                          public double SaldoB { get; set; }
                          public string Vigencia { get; set; }
                      }
                  }
                  

                  沒有的游標類

                      [Keyless]
                      public class OpcionesCursor
                      {
                          public string cv { get; set; }
                          public string tipo { get; set; }
                          public string descripcion { get; set; }
                          public double monto { get; set; }
                          public double salario_bc { get; set; }
                      }
                  

                  執行

                  第一個游標被正確映射(它只有 1 行).

                  第二個光標拋出錯誤.

                  這是我第一次在 dotnet 環境中使用 oracle,但我正在遵循 oracle 的官方指南,(參見.https://github.com/oracle/dotnet-db-samples/blob/master/samples/dotnet-core/ef-core/stored-procedure/return-ref-cursor.cs),正如您所見,顯然它僅適用于僅返回一個游標的 sp.有任何想法嗎?任何幫助將不勝感激.

                  This is the first time I'm working with oracle in a dotnet enviroment, but I'm following the oficial guide from oracle, (see. https://github.com/oracle/dotnet-db-samples/blob/master/samples/dotnet-core/ef-core/stored-procedure/return-ref-cursor.cs) and as you can see, aparently it only works with sp's that returns only one cursor. Any ideas? Any help will be appreciated.

                  推薦答案

                  目前 EF Core 不支持:https://github.com/dotnet/efcore/issues/8127 查看鏈接以找到此問題的替代方案.

                  Currently this is not supported by EF Core: https://github.com/dotnet/efcore/issues/8127 take a look at the link to find alternatives to this problem.

                  這篇關于實體框架核心 5 - 從單個存儲過程返回兩個 oracle 游標的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Is there a way to get information about a server using SQL(有沒有辦法使用 SQL 獲取有關服務器的信息)
                  How to get first element by XPath in Oracle(如何在 Oracle 中通過 XPath 獲取第一個元素)
                  Oracle XMLTable- fetching column from parent node(Oracle XMLTable-從父節點獲取列)
                  How to extract element-path from XMLType Node?(如何從 XMLType 節點中提取元素路徑?)
                  Add attribute to xmltype with value taken from sequence(使用取自序列的值將屬性添加到 xmltype)
                  How to enforce xmlforest creat elements even if expression value is null?(即使表達式值為空,如何強制執行 xmlforest creat 元素?)
                    <i id='5eixE'><tr id='5eixE'><dt id='5eixE'><q id='5eixE'><span id='5eixE'><b id='5eixE'><form id='5eixE'><ins id='5eixE'></ins><ul id='5eixE'></ul><sub id='5eixE'></sub></form><legend id='5eixE'></legend><bdo id='5eixE'><pre id='5eixE'><center id='5eixE'></center></pre></bdo></b><th id='5eixE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5eixE'><tfoot id='5eixE'></tfoot><dl id='5eixE'><fieldset id='5eixE'></fieldset></dl></div>

                    <tfoot id='5eixE'></tfoot>
                  • <small id='5eixE'></small><noframes id='5eixE'>

                      • <bdo id='5eixE'></bdo><ul id='5eixE'></ul>

                        <legend id='5eixE'><style id='5eixE'><dir id='5eixE'><q id='5eixE'></q></dir></style></legend>
                            <tbody id='5eixE'></tbody>

                            主站蜘蛛池模板: 一区二区三区亚洲 | 日日摸天天添天天添破 | 日韩一| 一级片av | 伊人电影院av | 久久久久久久久久性 | 亚洲一区中文 | 国产精品999| 成人欧美一区二区三区黑人孕妇 | 亚洲高清在线观看 | 一区二区免费高清视频 | 国产精品美女www爽爽爽视频 | 久久视频免费看 | 色婷婷av一区二区三区软件 | a视频在线 | 天天人人精品 | 国产视频亚洲视频 | 精品视频一区二区 | 国产精品日韩欧美一区二区三区 | 亚洲一区二区三区乱码aⅴ 四虎在线视频 | 国产我和子的乱视频网站 | 欧美日韩综合视频 | 欧美综合精品 | 天天操天天操 | 成人毛片视频免费 | 久久国产欧美日韩精品 | a在线观看 | 中文字幕第7页 | 黄色片免费 | 很很干很很日 | 成人av一区 | 欧美性一区二区三区 | 成人国产精品免费观看视频 | 伊人热久久| 久久久999国产精品 中文字幕在线精品 | 91xh98hx 在线 国产 | 韩日精品视频 | 久免费视频 | 久久99精品久久久97夜夜嗨 | 日韩一级 | 精品国产欧美一区二区三区不卡 |