ORA : Character set mismatch
Posted: Thu 20 Feb 2020 09:31
Hi,
We are using .netcore 3.1
and
Devart internal build https://download.devart.com/nuget_oracle_9_10_921.zip .
We have already shared the sample project with you. [39708]
After executing this query in LINQ we got Character set mismatch error.
Linq query
(from lst in _ControlfileRepository.GetAll()
select new ControlFileCORE()
{
COL_NAME = lst.COL_NAME == "" ? "" : lst.COL_NAME,
VALUE = lst.VALUE == "" ? "" : lst.VALUE,
Id = lst.Id
}).ToList();
Oracle Query generated by this LINQ query is:
SELECT CASE
WHEN c.COL_NAME IS NULL THEN N''
ELSE c.COL_NAME
END COL_NAME, CASE
WHEN c.VALUE IS NULL THEN N''
ELSE c.VALUE
END VALUE, c.Id
FROM CONTROLFILE c
How can we handle this?
[In the previous version of .net this is working fine]
Please help us to solve this issue.
We are using .netcore 3.1
and
Devart internal build https://download.devart.com/nuget_oracle_9_10_921.zip .
We have already shared the sample project with you. [39708]
After executing this query in LINQ we got Character set mismatch error.
Linq query
(from lst in _ControlfileRepository.GetAll()
select new ControlFileCORE()
{
COL_NAME = lst.COL_NAME == "" ? "" : lst.COL_NAME,
VALUE = lst.VALUE == "" ? "" : lst.VALUE,
Id = lst.Id
}).ToList();
Oracle Query generated by this LINQ query is:
SELECT CASE
WHEN c.COL_NAME IS NULL THEN N''
ELSE c.COL_NAME
END COL_NAME, CASE
WHEN c.VALUE IS NULL THEN N''
ELSE c.VALUE
END VALUE, c.Id
FROM CONTROLFILE c
How can we handle this?
[In the previous version of .net this is working fine]
Please help us to solve this issue.