예제 #1
0
        public SCQuery Contains(string field, string regex, SCRegexOption optionsSet)
        {
            var dic = new Dictionary <string, object>();

            dic.Add("$regex", regex);
            dic.Add("$options", optionsSet.Options);
            info.AddNode(field, dic);
            return(this);
        }
예제 #2
0
        public SCQuery EndWith(string field, string regex, SCRegexOption optionsSet = null)
        {
            var dic = new Dictionary <string, object>();

            dic.Add("$regex", regex + "$");
            if (optionsSet != null)
            {
                dic.Add("$options", optionsSet.Options);
            }
            info.AddNode(field, dic);
            return(this);
        }