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); }
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); }