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 am filtering a list of users by using a search pattern and NinjaNye.SearchExtensions 3.0.1.
One of the user has a special character within its name ( the literal Æ )
The search returns all expected results but the user with the special character.
Here is my code :
string pattern = "";
var coaches = context.Coaches.Search(t => t.UserName.ToLower())
.Containing(pattern.ToLower())
.OrderBy(c => c.UserName);
// a row is missing in the coaches variable.
The text was updated successfully, but these errors were encountered:
What's the point of searching for an empty string? Why not just return the whole list of users?
Also, does your database collation properly handle special (unicode) characters? Is it set to be case sensitive or not (if not, you don't need the .ToLower() )?
Hello,
I am filtering a list of users by using a search pattern and NinjaNye.SearchExtensions 3.0.1.
One of the user has a special character within its name ( the literal Æ )
The search returns all expected results but the user with the special character.
Here is my code :
The text was updated successfully, but these errors were encountered: