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;
public OeCacheComparer(IReadOnlyDictionary <ConstantNode, OeQueryCacheDbParameterDefinition>?constantToParameterMapper) { _parameterValues = new OeCacheComparerParameterValues(constantToParameterMapper); _queryNodeComparer = new OeQueryNodeComparer(_parameterValues); }
public OeCacheComparer(IReadOnlyDictionary <ConstantNode, OeQueryCacheDbParameterDefinition> constantToParameterMapper, bool navigationNextLink) { _parameterValues = new OeCacheComparerParameterValues(constantToParameterMapper); _queryNodeComparer = new OeQueryNodeComparer(_parameterValues); _navigationNextLink = navigationNextLink; }