Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use fulltext functions in entity framework core

Greg BachratyMar 10 2021

I'm trying to map the CONTAINS function to use in EFCore queries however the generated sql is malformed. Full runnable repro attached.
OracleFulltextBug.zip (993 Bytes)I would expect the following command text:
SELECT "t"."Name"
FROM "Things" "t"
WHERE CONTAINS("t"."Name", N'asd') > 0.0
however I get the following:
SELECT "t"."Name"
FROM "Things" "t"
WHERE CASE
WHEN CONTAINS("t"."Name", N'asd') THEN 1
ELSE 0
END > 0.0
Am I doing something wrong or is this a bug?

This post has been answered by Alex Keh-Oracle on Mar 12 2021
Jump to Answer
Comments
Post Details
Added on Mar 10 2021
1 comment
483 views