示例#1
0
        private bool CompareFilter(FilterClause?clause1, FilterClause?clause2, bool navigationNextLink)
        {
            if (clause1 == clause2)
            {
                return(true);
            }
            if (clause1 == null || clause2 == null)
            {
                return(false);
            }

            if (!clause1.ItemType.IsEqual(clause2.ItemType))
            {
                return(false);
            }

            OeQueryNodeComparer queryNodeComparer = navigationNextLink ? new OeQueryNodeComparer(default) : _queryNodeComparer;
示例#2
0
 public OeCacheComparer(IReadOnlyDictionary <ConstantNode, OeQueryCacheDbParameterDefinition>?constantToParameterMapper)
 {
     _parameterValues   = new OeCacheComparerParameterValues(constantToParameterMapper);
     _queryNodeComparer = new OeQueryNodeComparer(_parameterValues);
 }
示例#3
0
 public OeCacheComparer(IReadOnlyDictionary <ConstantNode, OeQueryCacheDbParameterDefinition> constantToParameterMapper, bool navigationNextLink)
 {
     _parameterValues    = new OeCacheComparerParameterValues(constantToParameterMapper);
     _queryNodeComparer  = new OeQueryNodeComparer(_parameterValues);
     _navigationNextLink = navigationNextLink;
 }