I thought that your solution would simply implicate to omit in your routinesStanislavK wrote:At the moment, the comparison is case-sensitive/case-insensitive depending on the settings in the database. I.e., as MySQL servers are case-insensitive by default, strings are compared case-insensitively too. If the server is set to be case-sensitive, the simplest way to make your query case-insensitive is to use the ToLower/ToUpper method on the strings used:Feel free to contact us if something is unclear.Code: Select all
var query = from item in MyDataContext.Tables where item.StringColumn.ToLower() == "Value".ToLower() select item;
the parameter "BINARY" so that the function LIKE could perform alone,
so that's ok, I just implemented the following to keep using the LIKE
function itself. Thanks
Code: Select all
query = query.Where(t => t.Department.ToLower().Contains(name.ToLower()));