久久久久久久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>

        實(shí)體框架核心 5 - 從單個(gè)存儲過程返回兩個(gè) orac

        ENTITY FRAMEWORK CORE 5 - Return two oracle cursors from single stored procedure(實(shí)體框架核心 5 - 從單個(gè)存儲過程返回兩個(gè) oracle 游標(biāo))
      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>

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

                  問題描述

                  限時(shí)送ChatGPT賬號..

                  我正在開發(fā)一個(gè)調(diào)用 oracle 存儲過程的 API - 我無法觸及它 - 并返回兩個(gè) refcursors.問題是,在我的代碼中,只有從 sp 返回的第一個(gè)游標(biāo) beign 被映射,而另一個(gè)游標(biāo)則是 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);
                  

                  被映射的游標(biāo)類

                      [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; }
                      }
                  }
                  

                  沒有的游標(biāo)類

                      [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í)行

                  第一個(gè)游標(biāo)被正確映射(它只有 1 行).

                  第二個(gè)光標(biāo)拋出錯(cuò)誤.

                  這是我第一次在 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),正如您所見,顯然它僅適用于僅返回一個(gè)游標(biāo)的 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.

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

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

                  相關(guān)文檔推薦

                  Is there a way to get information about a server using SQL(有沒有辦法使用 SQL 獲取有關(guān)服務(wù)器的信息)
                  How to get first element by XPath in Oracle(如何在 Oracle 中通過 XPath 獲取第一個(gè)元素)
                  Oracle XMLTable- fetching column from parent node(Oracle XMLTable-從父節(jié)點(diǎn)獲取列)
                  How to extract element-path from XMLType Node?(如何從 XMLType 節(jié)點(diǎn)中提取元素路徑?)
                  Add attribute to xmltype with value taken from sequence(使用取自序列的值將屬性添加到 xmltype)
                  How to enforce xmlforest creat elements even if expression value is null?(即使表達(dá)式值為空,如何強(qiáng)制執(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>

                            主站蜘蛛池模板: 国产成人99久久亚洲综合精品 | 在线精品一区二区三区 | 国产精品一二区 | 久久久久久99 | 国产一区二区 | www.中文字幕av | a视频在线观看 | 男女视频在线看 | 久久久久久国产 | 成人超碰在线 | 色偷偷噜噜噜亚洲男人 | 成人在线免费电影 | 亚洲va国产日韩欧美精品色婷婷 | 国产精品久久久久久久午夜片 | 日韩精品免费在线观看 | 91免费入口| 久久精品亚洲一区二区三区浴池 | 红桃视频一区二区三区免费 | 国产日韩电影 | 亚洲欧美在线免费观看 | 在线亚洲人成电影网站色www | 亚洲福利在线观看 | 一区二区三区四区五区在线视频 | 国产精品18毛片一区二区 | 免费在线观看一区二区三区 | 91视在线国内在线播放酒店 | 国产精华一区 | 久久久www成人免费无遮挡大片 | 国产精品不卡 | 欧美三区视频 | 成人免费一区二区 | 狠狠久| 91精品国产高清久久久久久久久 | 成人欧美一区二区三区黑人孕妇 | 国产中文视频 | 黄色在线免费看 | av一二三四 | 一区在线视频 | 麻豆视频在线免费观看 | 成人亚洲| 国产精品久久久久久久久大全 |