Пример #1
0
 public virtual string GetFulltextSearchExpr(string expr, string substring, FulltextSearchParams pars)
 {
     substring = substring.Replace("@", "@@").Replace("%", "@%").Replace("_", "@_");
     return String.Format("({0} LIKE {1} ESCAPE '@')", expr, this.GetSqlLiteral(pars.LikePrefix + substring + pars.LikePostfix, new DbTypeString()));
 }
Пример #2
0
 public virtual string GetFulltextSearchExpr(string expr, string substring, FulltextSearchParams pars)
 {
     substring = substring.Replace("@", "@@").Replace("%", "@%").Replace("_", "@_");
     return String.Format("({0} LIKE {1} ESCAPE '@')", expr, this.GetSqlLiteral(pars.LikePrefix + substring + pars.LikePostfix, new DbTypeString()));
 }