Пример #1
0
        /// <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()));
        }
Пример #2
0
        protected override String CreateEndsWithExpression(EndsWithFilter filter, bool not)
        {
            String rv = "( ENDS-WITH " + filter.GetName() + " " + filter.GetValue() + " )";

            return(Not(rv, not));
        }
Пример #3
0
 public Dictionary <string, object> VisitEndsWithFilter(Hashtable p, EndsWithFilter filter)
 {
     return(CreateMap("ENDSWITH", filter.GetName(), filter.GetValue()));
 }