ChangeDatabase() 공개 추상적인 메소드

public abstract ChangeDatabase ( string databaseName ) : void
databaseName string
리턴 void
예제 #1
0
 /// <summary>
 /// Changes database in database connection
 /// </summary>
 /// <param name="connection">
 /// Opened database connection
 /// </param>
 /// <param name="databaseName">
 /// The database Name.
 /// </param>
 public virtual void SwitchDatabase(DbConnection connection, string databaseName)
 {
     connection.ChangeDatabase(databaseName);
 }
 private void CheckAndEstablishReadConnection()
 {
     if (readDBConn == null)
     {
         readDBConn = new NpgsqlConnection(ConnectionString);
         readDBConn.Open();
         readDBConn.ChangeDatabase(myConfig.Database);
     }
 }