You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried different escape sequences, no one work.
LinqToQuerystringFilteringSample also don't allow search by apostrophe, crashes with exception.
Simple test (nunit)
[Test]
[TestCase("'", Result = 1)]
[TestCase("\'", Result = 1)]
[TestCase("''''", Result = 1)]
[TestCase("''", Result = 1)]
[TestCase(""", Result = 1)]
public int QueryWithApostrophe(string query)
{
var data = new Data[] { new Data("'hello"), new Data("one"), new Data("two"), new Data("three") };
var result = data.AsQueryable().LinqToQuerystring(typeof(Data), "?$filter=startswith(tolower(Title),tolower('" + query + "')) eq true");
return (result as IEnumerable<Data>).Count();
}
The text was updated successfully, but these errors were encountered:
I tried different escape sequences, no one work.
LinqToQuerystringFilteringSample also don't allow search by apostrophe, crashes with exception.
Simple test (nunit)
[Test]
[TestCase("'", Result = 1)]
[TestCase("\'", Result = 1)]
[TestCase("''''", Result = 1)]
[TestCase("''", Result = 1)]
[TestCase(""", Result = 1)]
public int QueryWithApostrophe(string query)
{
var data = new Data[] { new Data("'hello"), new Data("one"), new Data("two"), new Data("three") };
The text was updated successfully, but these errors were encountered: