コード例 #1
0
        public MongoApiConfiguration <T> Configure <T>(string database, string collection) where T : class
        {
            var result = new MongoApiConfiguration <T>();

            result.Database   = database;
            result.Collection = collection;
            result.WithConnectionString("mongoapi");
            configurations.Add(result);
            return(result);
        }
コード例 #2
0
        public MongoApiConfiguration <BsonDocument> Configure(string database, string collection)
        {
            var result = new MongoApiConfiguration <BsonDocument>();

            result.Database   = database;
            result.Collection = collection;
            result.WithConnectionString("mongoapi");
            configurations.Add(result);
            return(result);
        }