public MongoIndexKeysWarpper <T> GeoSpatialHaystack(Expression <Func <T, object> > name, string additionalName)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.GeoSpatialHaystack(field, additionalName);
            return(this);
        }
        public MongoIndexKeysWarpper <T> GeoSpatialSpherical(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.GeoSpatialSpherical(field);
            return(this);
        }
Example #3
0
        public MongoQueryWarpper <T> NotIn(Expression <Func <T, object> > name, object[] val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.NotIn(field, val);
            return(this);
        }
Example #4
0
        public MongoQueryWarpper <T> SizeGreaterThan(Expression <Func <T, object> > name, int val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.SizeGreaterThan(field, val);
            return(this);
        }
Example #5
0
        public MongoUpdateWarpper <T> SetOnInsert(Expression <Func <T, object> > name, object val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.SetOnInsert(field, val);
            return(this);
        }
Example #6
0
        public MongoUpdateWarpper <T> Rename(Expression <Func <T, object> > name, string newname)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.Rename(field, newname);
            return(this);
        }
Example #7
0
        public MongoUpdateWarpper <T> Mul(Expression <Func <T, object> > name, long val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.Mul(field, val);
            return(this);
        }
Example #8
0
        public MongoUpdateWarpper <T> CurrentDate(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.CurrentDate(field);
            return(this);
        }
Example #9
0
        public MongoQueryWarpper <T> Exists(Expression <Func <T, object> > name, bool val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.Exists(field, val);
            return(this);
        }
        public MongoIndexKeysWarpper <T> Hashed(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.Hashed(field);

            return(this);
        }
Example #11
0
        public MongoUpdateWarpper <T> AddToSetEach(Expression <Func <T, object> > name, object[] val)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.AddToSetEach(field, val);

            return(this);
        }
        public MongoFieldSelecter <T> Select(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            if (!_fields.Contains(field))
            {
                _fields.Add(field);
            }

            return(this);
        }
Example #13
0
 public MongoQueryWarpper ElemMatch(Expression <Func <T, object> > name, MongoQueryWarpper query)
 {
     base.ElemMatch(MongoDBUtil.GetMongoElementField(name.Body), query);
     return(this);
 }
Example #14
0
 public MongoQueryWarpper Matches(Expression <Func <T, object> > name, string pattern)
 {
     base.Matches(MongoDBUtil.GetMongoElementField(name.Body), pattern);
     return(this);
 }
 public MongoIndexKeysWarpper <T> Text(params Expression <Func <T, object> >[] names)
 {
     base.Text(names.Select(p => MongoDBUtil.GetMongoElementField(p.Body)).ToArray());
     return(this);
 }
 public MongoSortWarpper <T> Desc(params Expression <Func <T, object> >[] keys)
 {
     base.Desc(keys.Select(p => MongoDBUtil.GetMongoElementField(p.Body)).ToArray());
     return(this);
 }
Example #17
0
 public static void DropIndex <T>(string connectionName, string database, string collection, params Expression <Func <T> >[] keynames) where T : new()
 {
     DropIndex(connectionName, database, collection, keynames.Select(p => MongoDBUtil.GetMongoElementField(p.Body)).ToArray());
 }