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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
        public MongoUpdateWarpper <T> CurrentDate(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.CurrentDate(field);
            return(this);
        }
Exemplo n.º 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);
        }
Exemplo n.º 10
0
        public MongoIndexKeysWarpper <T> Hashed(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

            base.Hashed(field);

            return(this);
        }
Exemplo n.º 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);
        }
Exemplo n.º 12
0
        public MongoFieldSelecter <T> Select(Expression <Func <T, object> > name)
        {
            var field = MongoDBUtil.GetMongoElementField(name.Body);

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

            return(this);
        }
Exemplo n.º 13
0
 public MongoQueryWarpper ElemMatch(Expression <Func <T, object> > name, MongoQueryWarpper query)
 {
     base.ElemMatch(MongoDBUtil.GetMongoElementField(name.Body), query);
     return(this);
 }
Exemplo n.º 14
0
 public MongoQueryWarpper Matches(Expression <Func <T, object> > name, string pattern)
 {
     base.Matches(MongoDBUtil.GetMongoElementField(name.Body), pattern);
     return(this);
 }
Exemplo n.º 15
0
 public MongoIndexKeysWarpper <T> Text(params Expression <Func <T, object> >[] names)
 {
     base.Text(names.Select(p => MongoDBUtil.GetMongoElementField(p.Body)).ToArray());
     return(this);
 }
Exemplo n.º 16
0
 public MongoSortWarpper <T> Desc(params Expression <Func <T, object> >[] keys)
 {
     base.Desc(keys.Select(p => MongoDBUtil.GetMongoElementField(p.Body)).ToArray());
     return(this);
 }
Exemplo n.º 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());
 }