예제 #1
0
        internal string GetValue(TermResolvingStrategy termResolvingStrategy)
        {
            // if the term is not default we ignore the strategy param
            // if the term is default we use the strategy param value
            var useExact = (!IsDefault && IsExact) ||
                           (IsDefault && termResolvingStrategy == TermResolvingStrategy.Exact);

            if (useExact)
            {
                return($"\"{TermNormalizer.NormalizeTerm(Value)}\"");
            }

            return(TermNormalizer.NormalizeTerm(Value));
        }
예제 #2
0
 IOptions <TEntity> IOptions <TEntity> .WithDefaultTermResolvingStrategy(TermResolvingStrategy termResolvingStrategy)
 {
     Options.DefaultTermResolvingStrategy = termResolvingStrategy;
     return(this);
 }