久久久久久久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賬號..

                  我正在開發(fā)一個調用 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; }
                      }
                  

                  執(zhí)行

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

                  第二個光標拋出錯誤.

                  這是我第一次在 dotnet 環(huán)境中使用 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-從父節(jié)點獲取列)
                  How to extract element-path from XMLType Node?(如何從 XMLType 節(jié)點中提取元素路徑?)
                  Add attribute to xmltype with value taken from sequence(使用取自序列的值將屬性添加到 xmltype)
                  How to enforce xmlforest creat elements even if expression value is null?(即使表達式值為空,如何強制執(zhí)行 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>

                            主站蜘蛛池模板: 国产亚洲精品91 | 黄色网址在线免费播放 | 国产高清精品一区二区三区 | 国产精品久久久久久久久免费桃花 | 国产女人与拘做视频免费 | 亚洲国产电影 | 蜜臀网 | 蜜臀网 | 亚洲网在线 | 欧美精品a∨在线观看不卡 国产精品久久国产精品 | 91视视频在线观看入口直接观看 | 伊人精品国产 | 日韩免费视频 | 精品国产一区二区三区久久影院 | 欧美激情国产日韩精品一区18 | 成人美女免费网站视频 | 欧美激情久久久 | 欧美亚州综合 | 久久久久亚洲 | 久久精品亚洲欧美日韩久久 | 久久久久久久久久久久久91 | 日韩电影中文字幕在线观看 | 日韩国产欧美一区 | 欧美大片久久久 | 久久99精品久久久久久秒播九色 | 国产一级免费视频 | 爱爱免费视频 | 日韩欧美国产精品一区二区三区 | 国产黄色小视频在线观看 | 午夜免费福利片 | 日韩精品一区二区三区老鸭窝 | 亚洲精品一区二区三区 | 观看毛片| 狠狠的日| 国产在线视频一区二区 | 狠狠亚洲 | 午夜不卡福利视频 | 成人午夜av| 国产黄色av网站 | 欧洲精品在线观看 | 日韩欧美一区在线 |