Ejemplo n.º 1
0
        internal Expression PeopleExtra()
        {
            Expression <Func <Person, bool> > pred = p =>
                                                     p.PeopleExtras.Any(e => CodeStrIds.Contains(e.FieldValue));
            Expression expr = Expression.Invoke(pred, parm);

            if (op == CompareType.NotEqual || op == CompareType.NotOneOf)
            {
                expr = Expression.Not(expr);
            }
            return(expr);
        }
Ejemplo n.º 2
0
        internal Expression CheckInByActivity()
        {
            Expression <Func <Person, bool> > pred = p => p.CheckInTimes.Any(e => e.CheckInActivities.Any(a => CodeStrIds.Contains(a.Activity)));
            Expression expr = Expression.Invoke(pred, parm);

            if (op == CompareType.NotEqual || op == CompareType.NotOneOf)
            {
                expr = Expression.Not(expr);
            }

            return(expr);
        }
Ejemplo n.º 3
0
        internal Expression PeopleExtraAttr()
        {
            Expression <Func <Person, bool> > pred = p =>
                                                     db.ViewAttributes.Any(vv => vv.PeopleId == p.PeopleId && CodeStrIds.Contains(vv.FieldAttr));
            Expression expr = Expression.Invoke(pred, parm);

            if (op == CompareType.NotEqual || op == CompareType.NotOneOf)
            {
                expr = Expression.Not(expr);
            }
            return(expr);
        }