Skip to content

Commit bb6ab17

Browse files
committed
Add DbGate
1 parent 3435cc8 commit bb6ab17

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

PocketDDD.AppHost/AppHost.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

33
var db = builder.AddSqlServer("sql")
4+
.WithDbGate(r => r.WithExplicitStart())
45
.WithLifetime(ContainerLifetime.Persistent)
56
.AddDatabase("PocketDDDContext");
67

PocketDDD.AppHost/PocketDDD.AppHost.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="Aspire.Hosting.AppHost" Version="13.2.4" />
1414
<PackageReference Include="Aspire.Hosting.SqlServer" Version="13.2.4" />
15+
<PackageReference Include="CommunityToolkit.Aspire.Hosting.SqlServer.Extensions" Version="13.2.1-beta.532" />
1516
<PackageReference Include="WireMock.Net.Aspire" Version="2.4.0" />
1617
</ItemGroup>
1718

0 commit comments

Comments
 (0)