Commit 36858788 authored by VTHIEN's avatar VTHIEN

fixed

parent 533ee6ba
......@@ -431,23 +431,23 @@ namespace Sieve.Services
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"))
{
var upperData = Expression.Call(propertyValue,typeof(string).GetMethods()
.First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0));
propertyValue = Expression.Call(
Expression.New(typeof(RemoveVietNamSign)),
typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string) }),
upperData
);
}else
//if (property.PropertyType.Name.ToLower().Equals("string"))
//{
var upperData = Expression.Call(propertyValue,typeof(string).GetMethods()
.First(m => m.Name == "ToUpper" && m.GetParameters().Length == 0));
propertyValue = Expression.Call(
Expression.New(typeof(RemoveVietNamSign)),
typeof(RemoveVietNamSign).GetMethod("RemoveSignVietnameseString", new Type[] { typeof(string) }),
upperData
);
/*}else
{
propertyValue = Expression.Call(propertyValue,
typeof(string).GetMethods()
.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