# SqlPackageResource<TPackage>

- 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/SqlPackageResource.cs)
- Inherits: `Resource`
- Implements: `IResource`, [IResourceWithDacpac](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/iresourcewithdacpac.md), `IResourceWithWaitSupport`

Represents a SQL Server Database package resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class SqlPackageResource<TPackage>
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithDacpac,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport
    where TPackage : IPackageMetadata
{
    // ...
}
```

## Type Parameters

- `TPackage` -- Type that represents the package that contains the .dacpac file.

## Constructors

- [SqlPackageResource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlpackageresource-1/constructors.md#constructor-string) -- Represents a SQL Server Database package resource.
