/// <summary>
        /// Evaluate standard predicate
        /// </summary>
        public override bool Visit(ILocStandardPredicate entity, ILocState data)
        {
            var includes = entity.Includes;
            var excludes = entity.Excludes;

            if (includes.IsEmpty && excludes.IsEmpty)
            {
                return(true);
            }
            if (includes.IsEmpty)
            {
                return(!excludes.Accept(this, data));
            }
            return(includes.Accept(this, data) && !excludes.Accept(this, data));
        }
示例#2
0
 public virtual TReturn Visit(ILocStandardPredicate entity, TData data)
 {
     return(Visit((ILocPredicate)entity, data));
 }
示例#3
0
 public override PredicateItem Visit(ILocStandardPredicate entity, IRailway data)
 {
     return(new StandardPredicateItem(entity, data));
 }