Support both net6 and net7

This commit is contained in:
2023-10-12 00:41:00 +02:00
parent 4fb6013aed
commit c15b970419
7 changed files with 23 additions and 12 deletions

View File

@@ -159,6 +159,9 @@ namespace BasicSample
result = dbContext.Users.FirstOrDefault(x => x.TotalSpent > 1);
Console.WriteLine($"Our first user {result.FullName} has spent {result.TotalSpent}");
var spent = dbContext.Users.Sum(x => x.TotalSpent);
Console.WriteLine($"Our users combined spent: {spent}");
}
{