Ejemplo n.º 1
0
        public PSMongoIndexOptions(MongoIndexOptions mongoIndexOptions)
        {
            if (mongoIndexOptions == null)
            {
                return;
            }

            ExpireAfterSeconds = mongoIndexOptions.ExpireAfterSeconds;
            Unique             = mongoIndexOptions.Unique;
        }
Ejemplo n.º 2
0
 public MongoCollectionImpl WithIndex(MongoIndexKeys key, MongoIndexOptions option)
 {
     return(this.WithIndex(new MongoIndex(key: key, options: option)));
 }
 public PSMongoIndexOptions(MongoIndexOptions mongoIndexOptions)
 {
     ExpireAfterSeconds = mongoIndexOptions.ExpireAfterSeconds;
     Unique             = mongoIndexOptions.Unique;
 }
Ejemplo n.º 4
0
 internal MongoIndex(MongoIndexKeys key, MongoIndexOptions options)
 {
     Key     = key;
     Options = options;
 }
 MongoCollection.Definition.IWithAttach <UpdateParentT> MongoCollection.Definition.IWithIndex <UpdateParentT> .WithIndex(MongoIndexKeys key, MongoIndexOptions option)
 {
     return(this.WithIndex(key, option));
 }
 MongoCollection.Update.IUpdate MongoCollection.Update.IWithIndex.WithIndex(MongoIndexKeys key, MongoIndexOptions option)
 {
     return(this.WithIndex(key, option));
 }