Update dependencies

This commit is contained in:
KaasKop-
2023-04-06 17:21:20 +02:00
parent 1b43dd3109
commit aff9bbe7d2
4 changed files with 28 additions and 9 deletions

View File

@@ -28,5 +28,24 @@ public class ThuisDbContext : DbContext
FreezerId = 2,
Name = "Berging"
});
modelBuilder.Entity<FreezerItem>().HasData(
new FreezerItem
{
FreezerItemId = 1,
FreezerId = 1,
Item = "Kip",
Amount = 1,
Drawer = 1
},
new FreezerItem
{
FreezerItemId = 2,
FreezerId = 2,
Item = "1 pak van 2 hamburgers",
Amount = 1,
Drawer = 2
});
}
}

View File

@@ -27,7 +27,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
// app.UseHttpsRedirection();
app.UseHttpsRedirection();
app.UseAuthorization();

View File

@@ -1,27 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="12.0.0" />
<PackageReference Include="AutoMapper" Version="12.0.1" />
<PackageReference Include="AutoMapper.EF6" Version="2.1.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.7">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.7">
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.10" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.5" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>
</Project>

BIN
test.pfx

Binary file not shown.