# OracleDatabaseResource

- Kind: `class`
- Package: [Aspire.Hosting.Oracle](/reference/api/csharp/aspire.hosting.oracle.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Oracle/OracleDatabaseResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<OracleDatabaseServerResource>`, `IValueProvider`, `IValueWithReferences`

A resource that represents an Oracle Database database. This is a child resource of a [OracleDatabaseServerResource](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource.md).

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class OracleDatabaseResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.OracleDatabaseServerResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Oracle/OracleDatabaseResource`

## Constructors

- [OracleDatabaseResource(string, string, OracleDatabaseServerResource)](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/constructors.md#constructor-string-string-oracledatabaseserverresource) -- A resource that represents an Oracle Database database. This is a child resource of a [OracleDatabaseServerResource](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource.md).

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Oracle Database.
- [DatabaseName](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/properties.md#databasename) : `string` `get` -- Gets the database name.
- [JdbcConnectionString](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/properties.md#jdbcconnectionstring) : `ReferenceExpression` `get` -- Gets the JDBC connection string for the Oracle Database.
- [Parent](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/properties.md#parent) : [OracleDatabaseServerResource](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource.md) `get` -- Gets the parent Oracle container resource.
- [UriExpression](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Oracle database.
