File tree Expand file tree Collapse file tree 2 files changed +3
-22
lines changed Expand file tree Collapse file tree 2 files changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -90,27 +90,7 @@ private static MongoClientSettings ParseConnectionString(string connectionString
9090
9191 // public methods
9292 /// <summary>
93- /// Gets a MongoDatabase instance representing a database. See also GetServer.
94- /// </summary>
95- /// <param name="databaseSettings">The settings to use with this database.</param>
96- /// <returns>An instance of MongoDatabase.</returns>
97- public MongoDatabase GetDatabase ( MongoDatabaseSettings databaseSettings )
98- {
99- return GetServer ( ) . GetDatabase ( databaseSettings ) ;
100- }
101-
102- /// <summary>
103- /// Gets a MongoDatabase instance representing a database. See also GetServer.
104- /// </summary>
105- /// <param name="databaseName">The name of the database.</param>
106- /// <returns>An instance of MongoDatabase.</returns>
107- public virtual MongoDatabase GetDatabase ( string databaseName )
108- {
109- return GetServer ( ) . GetDatabase ( databaseName ) ;
110- }
111-
112- /// <summary>
113- /// Gets a MongoServer object using this client's settings. See also GetDatabase.
93+ /// Gets a MongoServer object using this client's settings.
11494 /// </summary>
11595 /// <returns>A MongoServer.</returns>
11696 public MongoServer GetServer ( )
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ public void TestFixtureSetup()
4040 var clientSettings = Configuration . TestClient . Settings . Clone ( ) ;
4141 clientSettings . ReadPreference = ReadPreference . SecondaryPreferred ;
4242 var client = new MongoClient ( clientSettings ) ; // ReadPreference=SecondaryPreferred
43- _database = client . GetDatabase ( Configuration . TestDatabase . Name ) ;
43+ var server = client . GetServer ( ) ;
44+ _database = server . GetDatabase ( Configuration . TestDatabase . Name ) ;
4445 _database . GridFS . Files . Drop ( ) ;
4546 _database . GridFS . Chunks . Drop ( ) ;
4647 }
You can’t perform that action at this time.
0 commit comments