public override void ChangeDatabase(string databaseName) { if(State != ConnectionState.Open) throw new InvalidOperationException("CqlConnection must be open before Database can be changed."); if(!Cluster.ConnectionStrategy.ProvidesExclusiveConnections) { throw new InvalidOperationException( "Changing a database is only supported with a ConnectionStrategy that offers exclusive connections"); } _database = databaseName; }