Наследование: Orient.Client.Protocol.Operations.BaseOperation
Пример #1
0
        public bool DatabaseExist(string databaseName)
        {
            DbExist operation = new DbExist();
            operation.DatabaseName = databaseName;

            ODocument document = _connection.ExecuteOperation<DbExist>(operation);

            return document.GetField<bool>("Exists");
        }
Пример #2
0
        public bool DatabaseExist(string databaseName, OStorageType storageType)
        {
            DbExist operation = new DbExist(null);
            operation.DatabaseName = databaseName;
            operation.StorageType = storageType;

            ODocument document = _connection.ExecuteOperation(operation);

            return document.GetField<bool>("Exists");
        }