Error While executing LINQ query using dotConnect with Oracle.
Posted: Mon 28 Jul 2014 07:33
I am struggling with an error please help me ASAP,
Please find below details :-
While executing the the below mentioned query I am getting unnecessary error.
It is very simple query I can easily execute it in Oracle.
I am using Devart.Data.Oracle, Version=8.4.201.0
Exception : {"OUTER APPLY is not supported by Oracle Database 11g and lower. Oracle 12c or higher is required to run this LINQ statement correctly. If you need to run this statement with Oracle Database 11g or lower, rewrite it so that it can be converted to SQL, supported by the version of Oracle you use."}
My query : -
var cntx=new MyContext();
cntx.PROPERTies.Include(x=>x.PROPERTY_ADDRESS);
var prp = cntx.PROPERTies.Where(x => x.PROPERTY_STATUS == "A")
.Select(x => new
{
PropertyId = x.PROPERTY_ID,
PropertyAddress = x.PROPERTY_ADDRESS.FirstOrDefault(),
CreatedDate=x.CREATED_DATE
});
//Error occurred while executing below command.
var recordCount = prp.Count();
Please find below details :-
While executing the the below mentioned query I am getting unnecessary error.
It is very simple query I can easily execute it in Oracle.
I am using Devart.Data.Oracle, Version=8.4.201.0
Exception : {"OUTER APPLY is not supported by Oracle Database 11g and lower. Oracle 12c or higher is required to run this LINQ statement correctly. If you need to run this statement with Oracle Database 11g or lower, rewrite it so that it can be converted to SQL, supported by the version of Oracle you use."}
My query : -
var cntx=new MyContext();
cntx.PROPERTies.Include(x=>x.PROPERTY_ADDRESS);
var prp = cntx.PROPERTies.Where(x => x.PROPERTY_STATUS == "A")
.Select(x => new
{
PropertyId = x.PROPERTY_ID,
PropertyAddress = x.PROPERTY_ADDRESS.FirstOrDefault(),
CreatedDate=x.CREATED_DATE
});
//Error occurred while executing below command.
var recordCount = prp.Count();