Calling Oracle stored procedure from C#?

后端 未结 7 2128
说谎
说谎 2020-11-27 06:10

How does one call a stored procedure in oracle from C#?

相关标签:
7条回答
  • 2020-11-27 06:37

    In .Net through version 4 this can be done the same way as for SQL Server Stored Procs but note that you need:

    using System.Data.OracleClient;
    

    There are some system requirements here that you should verify are OK in your scenario.

    Microsoft is deprecating this namespace as of .Net 4 so third-party providers will be needed in the future. With this in mind, you may be better off using Oracle Data Provider for .Net (ODP.NET) from the word go - this has optimizations that are not in the Microsoft classes. There are other third-party options, but Oracle has a strong vested interest in keeping .Net developers on board so theirs should be good.

    0 讨论(0)
提交回复
热议问题