Compare commits

...

2 Commits

Author SHA1 Message Date
a.beging@eas-solutions.de
78135a9f6d Enhance AuditService: add logging for audit insert operations
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m21s
2026-05-06 15:15:09 +02:00
a.beging@eas-solutions.de
231e29f877 Fix target framework and package version in test project
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m6s
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 11:27:14 +02:00
2 changed files with 7 additions and 3 deletions

View File

@@ -45,6 +45,10 @@ namespace FoodsharingSiegen.Server.Data.Service
Data2 = data2 Data2 = data2
}; };
Console.WriteLine();
Console.WriteLine(DateTime.Now.ToString() + " " + CurrentUser?.Name + " " + AuditHelper.CreateText(audit));
Console.WriteLine();
Context.Audits?.Add(audit); Context.Audits?.Add(audit);
var saveR = await Context.SaveChangesAsync(); var saveR = await Context.SaveChangesAsync();

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
@@ -9,7 +9,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.4" /> <PackageReference Include="coverlet.collector" Version="6.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.7" /> <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="Moq" Version="4.20.72" /> <PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.3" /> <PackageReference Include="xunit" Version="2.9.3" />