/// <summary> /// /// </summary> /// <param name="p"></param> /// <param name="filter"></param> /// <returns></returns> public string VisitEndsWithFilter(Hashtable p, EndsWithFilter filter) { var name = filter.GetName(); var name2 = name as String; if (p.ContainsKey(name)) { name2 = p[name] as String; } return(string.Format("{0} -like \"{1}{2}\"", name2, "*", filter.GetValue())); }
protected override String CreateEndsWithExpression(EndsWithFilter filter, bool not) { String rv = "( ENDS-WITH " + filter.GetName() + " " + filter.GetValue() + " )"; return(Not(rv, not)); }
public Dictionary <string, object> VisitEndsWithFilter(Hashtable p, EndsWithFilter filter) { return(CreateMap("ENDSWITH", filter.GetName(), filter.GetValue())); }