# OllamaModelResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama.md)
- Type: [OllamaModelResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/ollamamodelresource.md)
- Kind: `Properties`
- Members: `3`

A resource that represents an ollama model.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaModelResource.cs#L25)

Gets the connection string expression for the Ollama model.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## ModelName

- Name: `ModelName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaModelResource.cs#L30)

Gets the model name.

```csharp
public string ModelName { get; }
```

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [IOllamaResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/iollamaresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaModelResource.cs#L20)

Gets the parent Ollama resource.

```csharp
public IOllamaResource Parent { get; }
```
