public ODatabase(string alias) { _connection = OClient.ReleaseConnection(alias); _connection.Database = this; _containsConnection = true; ClientCache = new Dictionary <ORID, ODocument>(); }
public void Close() { if (_containsConnection) { if (_connection.IsReusable) { OClient.ReturnConnection(_connection); } else { _connection.Dispose(); } _containsConnection = false; } }
public ODatabase(string alias) { _connection = OClient.ReleaseConnection(alias); _containsConnection = true; }