.NET Programming
--
Questions
--
Followers
Top Experts
.Tolower() is not working in linq query
list = (from sr in dbContext.SERVICE_REQUEST
join sc in dbContext.SERVICE_CUSTOMER on sr.CUSTOMER_ID equals sc.CUSTOMER_ID)
where (sr.SERVICE_REQUEST_NO.ToL ower().Con tains(objt obeAdvSear ch.Service RequestNum ber.ToLowe r()))
from above is sample query. my task is serach value,for that iam comparing oracle database filed and search value(objtobeAdvSearch). now i am converting tolower for comparision. but not working can u plz help me regarding this
join sc in dbContext.SERVICE_CUSTOMER
where (sr.SERVICE_REQUEST_NO.ToL
from above is sample query. my task is serach value,for that iam comparing oracle database filed and search value(objtobeAdvSearch). now i am converting tolower for comparision. but not working can u plz help me regarding this
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
few things to check..
1. what's the variable type of sr.SERVICE_REQUEST_NO ? Object, String, etc?
2. what's the variable type of objtobeAdvSearch.ServiceRe questNumbe r ? Object, String, etc?
1. what's the variable type of sr.SERVICE_REQUEST_NO ? Object, String, etc?
2. what's the variable type of objtobeAdvSearch.ServiceRe
STRING
when you mentioned "not working", is that no result was selected or generated an error?
if it's no result, can you putting break point and then debug to compare what's the values for:
sr.SERVICE_REQUEST_NO.ToLo wer()
objtobeAdvSearch.ServiceRe questNumbe r.ToLower( )
?
if it's no result, can you putting break point and then debug to compare what's the values for:
sr.SERVICE_REQUEST_NO.ToLo
objtobeAdvSearch.ServiceRe
?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
where (sr.SERVICE_REQUEST_NO.Equ als(objtob eAdvSearch .ServiceRe questNumbe r,StringCo mparison.O rdinalIgno reCase))
.NET Programming
--
Questions
--
Followers
Top Experts
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.