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)); }
IOptions <TEntity> IOptions <TEntity> .WithDefaultTermResolvingStrategy(TermResolvingStrategy termResolvingStrategy) { Options.DefaultTermResolvingStrategy = termResolvingStrategy; return(this); }