mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2026-06-11 09:48:19 +00:00
Support both net6 and net7
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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}");
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user