diff --git a/Utilities/QueryBuilder.cs b/Utilities/QueryBuilder.cs index a10e047ffed0c85fb5531b83b9a20ef597109c71..2fc1b3e29d599c6634f1280a6a519188e2663112 100644 --- a/Utilities/QueryBuilder.cs +++ b/Utilities/QueryBuilder.cs @@ -615,7 +615,7 @@ namespace Infrastructure.Utilities { if (!string.IsNullOrEmpty(value)) { - _Where.Append(string.Format(" and ({1} like '{0}' or {2} like '{0}')", value, fieldName1, fieldName2)); + _Where.Append(string.Format(" and ({1} like '%{0}%' or {2} like '%{0}%')", value, fieldName1, fieldName2)); } return this; }