S
shapper
Hello,
I am comparing two strings in a LINQ query as follows:
where t.Name.StartsWith(q)
I want to select the record even if t.Name is "New York" and q is
"new" ... I don't want case to affect it.
I changed it to:
where t.Name.StartsWith(q.ToLower)
But I don't know how to do this to t.Name ...
Thank You,
Miguel
I am comparing two strings in a LINQ query as follows:
where t.Name.StartsWith(q)
I want to select the record even if t.Name is "New York" and q is
"new" ... I don't want case to affect it.
I changed it to:
where t.Name.StartsWith(q.ToLower)
But I don't know how to do this to t.Name ...
Thank You,
Miguel