How to Make a Case InSensitive filter in Nin (Not in) Clause in C# using MongoDB Driver FilterDefinition
Loading
How to Make a Case InSensitive filter in Nin (Not in) Clause in C# using MongoDB Driver FilterDefinition
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sagar MaldePosted Jan 7, 2023, 5:40 AM
Found the Solution... I modified the In Clause extension as below and is working for me.
Thanks.
Sagar MaldePosted Jan 6, 2023, 10:18 AM
Unfortunately its not working for Nin clause
Aravind GovindarajPosted Jan 6, 2023, 9:49 AM
could you please check is this extension helps you
https://stackoverflow.com/questions/25745276/mongodb-c-sharp-driver-case-insensitive-compare-using-in-or-contains-on-a-listSagar MaldePosted Jan 6, 2023, 5:20 AM
Hi Aravind,
Thanks for the reply, but heres the existing code which I am using to filter the records and want to use Nin inside this only.
Can you please suggest the Nin case insensitive logic inside this?
Aravind GovindarajPosted Jan 5, 2023, 4:42 PM
Could you please check will this helps