public bool DatabaseExist(string databaseName) { DbExist operation = new DbExist(); operation.DatabaseName = databaseName; ODocument document = _connection.ExecuteOperation <DbExist>(operation); return(document.GetField <bool>("Exists")); }
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")); }
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")); }