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

                _containsConnection = false;
            }
        }
Example #3
0
 public ODatabase(string alias)
 {
     _connection         = OClient.ReleaseConnection(alias);
     _containsConnection = true;
 }