Commit 36858788 authored by VTHIEN's avatar VTHIEN

fixed

parent 533ee6ba
...@@ -431,10 +431,10 @@ namespace Sieve.Services ...@@ -431,10 +431,10 @@ namespace Sieve.Services
Expression filterValue = GetClosureOverConstant(constantVal, property.PropertyType); Expression filterValue = GetClosureOverConstant(constantVal, property.PropertyType);
if (true)//filterTerm.OperatorIsCaseInsensitive Make search insensitive case //comment by thien if (property.PropertyType.Name.ToLower().Equals("string"))//filterTerm.OperatorIsCaseInsensitive Make search insensitive case //comment by thien
{
if (property.PropertyType.Name.Equals("String"))
{ {
//if (property.PropertyType.Name.ToLower().Equals("string"))
//{
var upperData = Expression.Call(propertyValue,typeof(string).GetMethods() var upperData = Expression.Call(propertyValue,typeof(string).GetMethods()
.First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0)); .First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0));
propertyValue = Expression.Call( propertyValue = Expression.Call(
...@@ -442,12 +442,12 @@ namespace Sieve.Services ...@@ -442,12 +442,12 @@ namespace Sieve.Services
typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string) }), typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string) }),
upperData upperData
); );
}else /*}else
{ {
propertyValue = Expression.Call(propertyValue, propertyValue = Expression.Call(propertyValue,
typeof(string).GetMethods() typeof(string).GetMethods()
.First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0)); .First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0));
} } */
/**/ /**/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment