/// <summary>
        /// Filters documents where a specific field has no value in them.
        /// </summary>
        public FilterContainer Missing(string field)
        {
            IMissingFilter filter = new MissingFilterDescriptor();

            filter.Field = field;
            this.SetCacheAndName(filter);
            return(this.New(filter, f => f.Missing = filter));
        }
        /// <summary>
        /// Filters documents where a specific field has no value in them.
        /// </summary>
        public FilterContainer Missing(Expression <Func <T, object> > fieldDescriptor)
        {
            IMissingFilter filter = new MissingFilterDescriptor();

            filter.Field = fieldDescriptor;
            this.SetCacheAndName(filter);
            return(this.New(filter, f => f.Missing = filter));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Filters documents where a specific field has no value in them.
        /// </summary>
        public FilterContainer Missing(string field, Action <MissingFilterDescriptor> selector = null)
        {
            var mf = new MissingFilterDescriptor();

            if (selector != null)
            {
                selector(mf);
            }
            IMissingFilter filter = mf;

            filter.Field = field;
            this.SetCacheAndName(filter);
            return(this.New(filter, f => f.Missing = filter));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Filters documents where a specific field has no value in them.
        /// </summary>
        public FilterContainer Missing(Expression <Func <T, object> > fieldDescriptor, Action <MissingFilterDescriptor> selector = null)
        {
            var mf = new MissingFilterDescriptor();

            if (selector != null)
            {
                selector(mf);
            }
            IMissingFilter filter = mf;

            filter.Field = fieldDescriptor;
            this.SetCacheAndName(filter);
            return(this.New(filter, f => f.Missing = filter));
        }