private OracleConnection GetConnection() { if (_connection == null) { _connection = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=TestDataWindows)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)));" + "User Id=osmsharp;Password=osmsharp;"); _connection.Open(); OracleSchemaTools.Drop(_connection); } return(_connection); }
/// <summary> /// Initializes this target. /// </summary> public override void Initialize() { if (_connection == null) { // create connection if needed. _connection = new OracleConnection(_connectionString); _connection.Open(); } if (_createAndDetectSchema) { // creates or detects the tables. OracleSchemaTools.CreateAndDetect(_connection); } this.CreateNodeBuffers(); this.CreateWayBuffers(); this.CreateRelationBuffers(); }