예제 #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"));
        }
예제 #3
0
        public bool DatabaseExist(string databaseName, OStorageType storageType)
        {
            var operation = new DbExist
            {
                DatabaseName = databaseName,
                StorageType  = storageType
            };

            var document = _connection.ExecuteOperation(operation);

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