Skip to content

Commit

Permalink
Db Context Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Casparus J Van Zyl committed Jan 21, 2025
1 parent 06bcd00 commit 8756580
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<PackageVersion Include="Microsoft.NET.Build.Containers" Version="8.0.100" />
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
<PackageVersion Include="MimeKit" Version="4.9.0" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.2" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.3" />
<PackageVersion Include="OpenTelemetry.Exporter.Console" Version="1.11.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.12" />
<PackageVersion Include="OpenTelemetry.Instrumentation.Process" Version="0.5.0-beta.6" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public CatalogDbContext(IMultiTenantContextAccessor<FshTenantInfo> multiTenantCo
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
ArgumentNullException.ThrowIfNull(modelBuilder);
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfigurationsFromAssembly(typeof(CatalogDbContext).Assembly);
modelBuilder.HasDefaultSchema(SchemaNames.Catalog);
}
Expand Down
1 change: 1 addition & 0 deletions src/api/modules/Todo/Persistence/TodoDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public TodoDbContext(IMultiTenantContextAccessor<FshTenantInfo> multiTenantConte
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
ArgumentNullException.ThrowIfNull(modelBuilder);
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfigurationsFromAssembly(typeof(TodoDbContext).Assembly);
modelBuilder.HasDefaultSchema(SchemaNames.Todo);
}
Expand Down
3 changes: 2 additions & 1 deletion src/apps/blazor/client/Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<RootNamespace>FSH.Starter.Blazor.Client</RootNamespace>
<AssemblyName>FSH.Starter.Blazor.Client</AssemblyName>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mapster" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" PrivateAssets="all" />
<PackageReference Include="MudBlazor" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/apps/blazor/client/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<PackageVersion Include="Blazored.LocalStorage" Version="4.5.0" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="9.0.1" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.1" />
<PackageVersion Include="MudBlazor" Version="7.15.0" />
<PackageVersion Include="MudBlazor" Version="7.16.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/apps/blazor/infrastructure/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<PackageVersion Include="Blazored.LocalStorage" Version="4.5.0" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="9.0.1" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.1" />
<PackageVersion Include="MudBlazor" Version="7.15.0" />
<PackageVersion Include="MudBlazor" Version="7.16.0" />
</ItemGroup>
</Project>

0 comments on commit 8756580

Please sign in to comment.