# SqlProjectResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectResource.cs)
- Inherits: `Resource`
- Implements: `IResource`, [IResourceWithDacpac](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/iresourcewithdacpac.md), `IResourceWithWaitSupport`

Represents a SQL Server Database project resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class SqlProjectResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithDacpac,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectResource`

## Constructors

- [SqlProjectResource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource/constructors.md#constructor-string) -- Represents a SQL Server Database project resource.

## Properties

- [DacDeployOptionsPath](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource/properties.md#dacdeployoptionspath) : `string?` `get` -- Gets the configured path to the deployment options publish profile.
- [DacpacPath](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource/properties.md#dacpacpath) : `string?` `get` -- Gets the configured path to the .dacpac file.
- [SkipWhenDeployed](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource/properties.md#skipwhendeployed) : `bool` `get` -- Gets a value indicating whether deployment should be skipped when the dacpac has already been deployed.
