Beispiel #1
0
 protected override string GetSqlWhereClause(IEnumerable <string> tokens)
 {
     return(SqlFormatter.Conjunction(tokens.Select(t => SqlFormatter.Disjunction(
                                                       SqlFormatter.FormatStartsWith("SearchString", t + " "),
                                                       SqlFormatter.FormatContains("SearchString", " " + t + " ")))
                                     ));
 }
Beispiel #2
0
 protected override string GetSqlWhereClause(IEnumerable <string> tokens)
 {
     return(SqlFormatter.Conjunction(tokens.Select(t => SqlFormatter.FormatEquals("StammedPartNumber", t))));
 }