Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Straight conversion to .NET 8 #368

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated to NET 8
  • Loading branch information
csharpfritz committed Dec 3, 2023

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit 08fad770c5744cd9cae49d4e97a0142d8242ed7f
10 changes: 5 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<AspNetCoreVersion>7.0.0</AspNetCoreVersion>
<BlazorVersion>7.0.0</BlazorVersion>
<EntityFrameworkVersion>7.0.0</EntityFrameworkVersion>
<TargetFrameworkVersion>net7.0</TargetFrameworkVersion>
<SystemNetHttpJsonVersion>7.0.0</SystemNetHttpJsonVersion>
<AspNetCoreVersion>8.0.0</AspNetCoreVersion>
<BlazorVersion>8.0.0</BlazorVersion>
<EntityFrameworkVersion>8.0.0</EntityFrameworkVersion>
<TargetFrameworkVersion>net8.0</TargetFrameworkVersion>
<SystemNetHttpJsonVersion>8.0.0</SystemNetHttpJsonVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="$(EntityFrameworkVersion)" />
</ItemGroup>
22 changes: 22 additions & 0 deletions save-points/00-get-started/BlazingPizza.Server/SeedData.cs
Original file line number Diff line number Diff line change
@@ -8,111 +8,133 @@ public static void Initialize(PizzaStoreContext db)
{
new Topping()
{
Id=1,
Name = "Extra cheese",
Price = 2.50m,
},
new Topping()
{
Id=2,
Name = "American bacon",
Price = 2.99m,
},
new Topping()
{
Id=3,
Name = "British bacon",
Price = 2.99m,
},
new Topping()
{
Id=4,
Name = "Canadian bacon",
Price = 2.99m,
},
new Topping()
{
Id=5,
Name = "Tea and crumpets",
Price = 5.00m
},
new Topping()
{
Id=6,
Name = "Fresh-baked scones",
Price = 4.50m,
},
new Topping()
{
Id=7,
Name = "Bell peppers",
Price = 1.00m,
},
new Topping()
{
Id=8,
Name = "Onions",
Price = 1.00m,
},
new Topping()
{
Id=9,
Name = "Mushrooms",
Price = 1.00m,
},
new Topping()
{
Id=10,
Name = "Pepperoni",
Price = 1.00m,
},
new Topping()
{
Id=11,
Name = "Duck sausage",
Price = 3.20m,
},
new Topping()
{
Id=12,
Name = "Venison meatballs",
Price = 2.50m,
},
new Topping()
{
Id=13,
Name = "Served on a silver platter",
Price = 250.99m,
},
new Topping()
{
Id=14,
Name = "Lobster on top",
Price = 64.50m,
},
new Topping()
{
Id=15,
Name = "Sturgeon caviar",
Price = 101.75m,
},
new Topping()
{
Id=16,
Name = "Artichoke hearts",
Price = 3.40m,
},
new Topping()
{
Id=17,
Name = "Fresh tomatoes",
Price = 1.50m,
},
new Topping()
{
Id=18,
Name = "Basil",
Price = 1.50m,
},
new Topping()
{
Id=19,
Name = "Steak (medium-rare)",
Price = 8.50m,
},
new Topping()
{
Id=20,
Name = "Blazing hot peppers",
Price = 4.20m,
},
new Topping()
{
Id=21,
Name = "Buffalo chicken",
Price = 5.00m,
},
new Topping()
{
Id=22,
Name = "Blue cheese",
Price = 2.50m,
},
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="$(EntityFrameworkVersion)" />
</ItemGroup>
Original file line number Diff line number Diff line change
@@ -8,111 +8,133 @@ public static void Initialize(PizzaStoreContext db)
{
new Topping()
{
Id=1,
Name = "Extra cheese",
Price = 2.50m,
},
new Topping()
{
Id=2,
Name = "American bacon",
Price = 2.99m,
},
new Topping()
{
Id=3,
Name = "British bacon",
Price = 2.99m,
},
new Topping()
{
Id=4,
Name = "Canadian bacon",
Price = 2.99m,
},
new Topping()
{
Id=5,
Name = "Tea and crumpets",
Price = 5.00m
},
new Topping()
{
Id=6,
Name = "Fresh-baked scones",
Price = 4.50m,
},
new Topping()
{
Id=7,
Name = "Bell peppers",
Price = 1.00m,
},
new Topping()
{
Id=8,
Name = "Onions",
Price = 1.00m,
},
new Topping()
{
Id=9,
Name = "Mushrooms",
Price = 1.00m,
},
new Topping()
{
Id=10,
Name = "Pepperoni",
Price = 1.00m,
},
new Topping()
{
Id=11,
Name = "Duck sausage",
Price = 3.20m,
},
new Topping()
{
Id=12,
Name = "Venison meatballs",
Price = 2.50m,
},
new Topping()
{
Id=13,
Name = "Served on a silver platter",
Price = 250.99m,
},
new Topping()
{
Id=14,
Name = "Lobster on top",
Price = 64.50m,
},
new Topping()
{
Id=15,
Name = "Sturgeon caviar",
Price = 101.75m,
},
new Topping()
{
Id=16,
Name = "Artichoke hearts",
Price = 3.40m,
},
new Topping()
{
Id=17,
Name = "Fresh tomatoes",
Price = 1.50m,
},
new Topping()
{
Id=18,
Name = "Basil",
Price = 1.50m,
},
new Topping()
{
Id=19,
Name = "Steak (medium-rare)",
Price = 8.50m,
},
new Topping()
{
Id=20,
Name = "Blazing hot peppers",
Price = 4.20m,
},
new Topping()
{
Id=21,
Name = "Buffalo chicken",
Price = 5.00m,
},
new Topping()
{
Id=22,
Name = "Blue cheese",
Price = 2.50m,
},
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="$(EntityFrameworkVersion)" />
</ItemGroup>
Loading