示例#1
0
文件: Query.cs 项目: sillsdev/wesay
        private bool WhereFilterDoesNotApply(object o)
        {
            bool evaluateResults = true;

            if (_whereCondition != null)
            {
                Dictionary <string, object> data = new Dictionary <string, object>();
                foreach (KeyValuePair <string, FieldProperties> pair in _whereFieldProperties)
                {
                    MethodInfo getProperty   = pair.Value.Method;
                    object     propertyValue = getProperty.Invoke(o, null);
                    data.Add(pair.Key, propertyValue);
                }
                evaluateResults = _whereCondition.Invoke(data);
            }
            return(evaluateResults);
        }