Exemplo n.º 1
0
        private static QueryProperty Exists(QueryProperty property, bool exists)
        {
            var expression = exists.ToString().ToLower(); //QueryOperator.ConvertOperandToJson(exists);

            property.AddOperator(new QueryOperator("$exists", expression));

            return property;
        }
Exemplo n.º 2
0
        public static QueryProperty Mod(this QueryProperty property, int num, int denom)
        {
            var expression = string.Format("[{0},{1}]", num, denom);

            property.AddOperator(new QueryOperator("$mod", expression));

            return property;
        }
Exemplo n.º 3
0
        private static QueryProperty Exists(QueryProperty property, bool exists)
        {
            var expression = exists.ToString().ToLower(); //QueryOperator.ConvertOperandToJson(exists);

            property.AddOperator(new QueryOperator("$exists", expression));

            return(property);
        }
Exemplo n.º 4
0
        public static QueryProperty Size(this QueryProperty property, int size)
        {
            property.AddOperator(new QueryOperator("$size", size.ToString()));

            return(property);
        }
Exemplo n.º 5
0
        private static void AddExpression(QueryProperty property, string operatorName, string value)
        {
            var expression = value;

            property.AddOperator(new QueryOperator(operatorName, expression));
        }