Skip to content

Conversation

@christiannagel
Copy link
Contributor

PR Classification

EF Core: update project dependencies and improve code clarity.

PR Summary

This pull request updates multiple project files to reference newer versions of Microsoft.EntityFrameworkCore and related packages, enhances code clarity, and corrects method names.

  • MenusContext.cs: Constructor syntax improved for _restaurantId initialization.
  • Runner.cs: Method name corrected from AddAddtionalCardsAsync to AddAdditionalCardsAsync, and await statements updated for consistency.
  • Program.cs: Fixed typo in method call from AddAddtionalCardsAsync to AddAdditionalCardsAsync.
  • ScaffoldSample.csproj: Target framework updated from net7.0 to net8.0.
  • Multiple project files updated to use Microsoft.Extensions.Hosting version 8.0.1.

Updated project files to reference newer versions of
`Microsoft.EntityFrameworkCore`, `Microsoft.EntityFrameworkCore.SqlServer`,
`Microsoft.EntityFrameworkCore.Design`, and `Microsoft.EntityFrameworkCore.Cosmos`
from `8.0.0` to `8.0.15`. Also updated `Microsoft.Extensions.Hosting`
to version `8.0.1` in several projects. Changed target framework
from `net7.0` to `net8.0` in `ScaffoldSample.csproj` for
compatibility with the latest EF Core features.
- Updated MenusContext to initialize _restaurantId inline.
- Fixed typo in Program.cs method name from AddAddtionalCardsAsync to AddAdditionalCardsAsync.
- Refactored Runner class to use constructor parameters directly.
- Replaced private _menusContext field with menusContext parameter in relevant methods.
@christiannagel christiannagel merged commit 72bb595 into main Apr 22, 2025
1 of 2 checks passed
@christiannagel christiannagel deleted the dotnet8 branch April 22, 2025 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants