we currently use version 8.4.313 with .Net-Framework 4 and have a very strange problem that has to be solved:
Code: Select all
var query = db.MyTable
.Where(p => p.MyField != test)
.Select(p => p.ID);
Code: Select all
SELECT
"Extent1".ID
FROM "MyTable" "Extent1"
WHERE NOT (((UPPER("Extent1"."MyField")) = (UPPER(:p__linq__0))) OR (("Extent1"."MyField" IS NULL) AND (:p__linq__0 IS NULL)))
Code: Select all
var test = "";
The query
Code: Select all
var query = db.MyTable
.Where(p => p.MyField != "")
.Select(p => p.ID);
Code: Select all
SELECT
"Extent1".ID
FROM "MyTable" "Extent1"
WHERE "Extent1"."MyField " IS NOT NULL
What has to be done to trigger the provider to create the right query in case of the parameters value is string.empty? (UseCSharpNullComparisonBehavior is alreday set to true)
I can't change ALL queries in our application and add an if (value == "") or something like that ...
Does the current version (9.x) of dotConnect for Oracle solve this problem?
Best regards!