Commit 533ee6ba authored by VTHIEN's avatar VTHIEN

fixed

parent e3e93d11
...@@ -433,18 +433,24 @@ namespace Sieve.Services ...@@ -433,18 +433,24 @@ namespace Sieve.Services
if (true)//filterTerm.OperatorIsCaseInsensitive Make search insensitive case //comment by thien if (true)//filterTerm.OperatorIsCaseInsensitive Make search insensitive case //comment by thien
{ {
var upperData = Expression.Call(propertyValue, if (property.PropertyType.Name.Equals("String"))
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(
Expression.New(typeof(RemoveVietNamSign)), Expression.New(typeof(RemoveVietNamSign)),
typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string)}), typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string) }),
upperData upperData
); );
}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));
}
/**/
filterValue = Expression.Call(filterValue, filterValue = Expression.Call(filterValue,
......
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