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
90
90
91
91
// public methods
92
92
/// <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.
114
94
/// </summary>
115
95
/// <returns>A MongoServer.</returns>
116
96
public MongoServer GetServer ( )
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ public void TestFixtureSetup()
40
40
var clientSettings = Configuration . TestClient . Settings . Clone ( ) ;
41
41
clientSettings . ReadPreference = ReadPreference . SecondaryPreferred ;
42
42
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 ) ;
44
45
_database . GridFS . Files . Drop ( ) ;
45
46
_database . GridFS . Chunks . Drop ( ) ;
46
47
}
You can’t perform that action at this time.
0 commit comments