oracle-manageddataaccess

Oracle Data Provider for .NET does not support Oracle 19.0.48.0.0

拥有回忆 提交于 2021-02-08 02:08:27
问题 We just upgraded to Oracle 19c (19.3.0) and all apps stopped working with this error message: Oracle Data Provider for .NET does not support Oracle 19.0.48.0.0 I updated Oracle.ManagedDataAccess.EntityFramework and Oracle.ManagedDataAccess to 19.3.0 Any solution? 来源: https://stackoverflow.com/questions/57717088/oracle-data-provider-for-net-does-not-support-oracle-19-0-48-0-0

Calling Oracle stored procedure using Entity Framework with output parameter?

倖福魔咒の 提交于 2021-01-27 03:00:08
问题 I have a simple Oracle stored procedure that gets three parameters passed in, and has one output parameter: CREATE OR REPLACE PROCEDURE RA.RA_REGISTERASSET ( INPROJECTNAME IN VARCHAR2 ,INCOUNTRYCODE IN VARCHAR2 ,INLOCATION IN VARCHAR2 ,OUTASSETREGISTERED OUT VARCHAR2 ) AS BEGIN SELECT INPROJECTNAME || ', ' || INLOCATION || ', ' || INCOUNTRYCODE INTO OUTASSETREGISTERED FROM DUAL; END RA_REGISTERASSET; I am trying to use Entity Framework 6.1 to get back the OutAssetRegistered value, however, I

In dotnetcore, startup.cs, ConfigureServices, DbContext options is missing UseOracle()

北城余情 提交于 2019-12-23 05:15:38
问题 Where is the option for "UseOracle" ? services.AddDbContext(options => options.useoracle() I believe I've included the required DLL's. Screenshot provided: https://pasteboard.co/HuVDEfB.png Any help is much appreciated. 回答1: Try this using Oracle.EntityFrameworkCore; 来源: https://stackoverflow.com/questions/51390383/in-dotnetcore-startup-cs-configureservices-dbcontext-options-is-missing-useor

Table Does Not Exist while using EF 6 and Oracle.ManagedDataAccess

吃可爱长大的小学妹 提交于 2019-12-22 06:48:37
问题 I am creating a MVC application using EF 6.0.0.0 and ODP.Net Oracle.ManagedDataAccess version 4.121.2.0 for the data access. In my Controller called EmployeeController , I have the following code snippet: public ActionResult Details(int id) { try { EmployeeContext employeeContext = new EmployeeContext(); Employee employee = employeeContext.Employees.Single(x => x.Id == id); //Here the exception occurs! return View(employee); } catch (Exception e) { return View(e); } } And when I load the

EF 6 with ODP.Net Oracle.ManagedDataAccess, How to Use Non-Capital Letter for Class Properties?

為{幸葍}努か 提交于 2019-12-20 02:58:22
问题 I am using the EF 6 with ODP.Net Oracle.ManagedDataAccess for my ASP.Net MVC Web application. I have the following Model called Employee (in Model\Employee.cs file): [Table("TBLEMPLOYEE")] public class Employee { public int Id { get; set; } public string Name { get; set; } public string Gender { get; set; } public DateTime DateOfBirth { get; set; } public int EmployeeType { get; set; } public double? AnnualSalary { get; set; } public double? HourlyPay { get; set; } public double? HoursWorked

Entity Framework Core - Take(1), Single(), First()… Not Working with Oracle Provider (ORA-00933: SQL command not properly ended)

我只是一个虾纸丫 提交于 2019-12-19 18:56:11
问题 I'm using ef core(2.2.4) with oracle database oracleProvider: Oracle.EntityFrameworkCore(2.18.0-beta3) this code: IQueryable<KeyInfo> queryable = context .KeyInfos .Where(x => x.MobileNumber == "989191111111") .Take(1); generate this db query: SELECT "x"."ID", "x"."Key", "x"."MobileNumber", "x"."NationalCode" FROM "KeyInfo" "x" WHERE "x"."MobileNumber" = N'989191111111' FETCH FIRST 1 ROWS ONLY; running query give me this error: ORA-00933: SQL command not properly ended 00933. 00000 - "SQL

How to insert identity value in Oracle using Entity Framework using a sequence

假如想象 提交于 2019-12-11 02:39:36
问题 In an Oracle database, that has an ID column defined as a number: ...and a corresponding sequence for the table...: How do I make sure the ID column gets the next value in the sequence? using (var db = new MyOracleDb()){ var user= new User(){ first_name = 'Abe', last_name = 'Lincoln'}; //Do something here with the sequence and set the ID? db.User.Add(user); db.SaveChanges(); } I am using the latest Oracle.ManagedDataAccess and Oracle.ManagedDataAccess.EntityFramework + EF6x. 回答1: This is not

.NET 4.6 Oracle.ManagedDataAccess Requirements

◇◆丶佛笑我妖孽 提交于 2019-12-10 23:58:16
问题 What exactly is the minimum requirement to get a .NET 4.6 application working with Oracle? We are already using the Oracle.ManagedDataAccess client. We are using the Entity Framework and also DataSets (TableAdapters,...) for data access. Currently we always install the "full" Oracle Administrator client for our applications which has about 1,2 GB, but what is really necessary to make our application(s) working with Oracle? The Nuget page of the Oracle.ManagedDataAccess driver says "No

Entity Framework ORA-00932: inconsistent datatypes: “'expected CLOB got CHAR”

拜拜、爱过 提交于 2019-12-10 12:56:33
问题 Oracle.ManagedDataAccess.EntityFramework 6.122.1.0 library is used to access to an Oracle Database from MVC ASP.Net application. It is the latest library version from the NuGet as of November, 14th 2017 protected override Expression<Func<MyEntity, object>> getSelector() { return m => new { ID = m.ID, NAME = m.Name, LONGSTRING = "Blah-blah-blah-blah...some thousands characters..." + m.ID + "blah-blah...blah" }; } protected override ProblemMethod() { var result = db.MyEntity.Select(getSelector(

Getting output buffer from DBMS_OUTPUT.GET_LINES in C#

旧街凉风 提交于 2019-12-10 12:40:57
问题 I'm trying to get the output from the DBMS_OUTPUT.PUT_LINE() method in my anonymous PL/SQL block through C#. I've looked at a couple of other related questions here, but am still having trouble. The return code of executing the anonymous block is returning -1 , which should be correct based on the docs. I'm setting the DBMS_OUTPUT.ENABLE() to NULL in order to not set a specific buffer size, then using the DBMS_OUTPUT.GET_LINES() method in order to get the lines from that buffer. It returns