Extensions.Aspire.SqlServer
1.0.2
dotnet add package Extensions.Aspire.SqlServer --version 1.0.2
NuGet\Install-Package Extensions.Aspire.SqlServer -Version 1.0.2
<PackageReference Include="Extensions.Aspire.SqlServer" Version="1.0.2" />
<PackageVersion Include="Extensions.Aspire.SqlServer" Version="1.0.2" />
<PackageReference Include="Extensions.Aspire.SqlServer" />
paket add Extensions.Aspire.SqlServer --version 1.0.2
#r "nuget: Extensions.Aspire.SqlServer, 1.0.2"
#:package Extensions.Aspire.SqlServer@1.0.2
#addin nuget:?package=Extensions.Aspire.SqlServer&version=1.0.2
#tool nuget:?package=Extensions.Aspire.SqlServer&version=1.0.2
SqlServer.Aspire.Extensions
This package contains extension methods that improve the developer experience when working with SQL Server resources on .NET Aspire.
WithImportCommand(this IResourceBuilder<SqlServerDatabaseResource> resource, Action<ImportCommandOptions>? configureOptions = null)
The WithImportCommand extends the Aspire dashboard by adding a button on the SQL server database resource that allows you to import a .bacpac file.
By default, the method will look for a .bacpac file that matches the name of your database resource. This file needs to be located in the root directory of your Aspire.AppHost project.
If the file is not found, then the fallback behavior is the value specified on the ImportCommandOptions.Type property, which currently it can only be Path. This means that you will be prompted to specify the absolute path of the file.
Through the configureOptions parameter, you can also run custom code before or after the import. This can be useful, for example, to run custom SQL scripts to alter the database before the import.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting.Azure.Sql (>= 13.1.0)
- Microsoft.SqlServer.DacFx (>= 170.2.70)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.