Merged
Conversation
bump updates from main
Migrated `TemporalTableSample.csproj` to target .NET 9.0. Upgraded NuGet packages to version 9.0.4 for `Microsoft.EntityFrameworkCore`, `Microsoft.EntityFrameworkCore.Design`, `Microsoft.EntityFrameworkCore.SqlServer`, and `Microsoft.Extensions.Hosting` to ensure compatibility and leverage new features.
Updated the `Book` class to use primary constructor syntax for property initialization. Modified the `BooksContext` class to utilize a primary constructor for passing `DbContextOptions`. Refactored `Program.cs` to implement `Host.CreateApplicationBuilder`, simplifying service configuration and enabling sensitive data logging for the database context.
The project file `InheritanceMappingWithConversion.csproj` has been updated to target .NET 9.0 instead of .NET 7.0. Additionally, the versions of several NuGet package references have been upgraded from version 7.x to version 9.0. This includes `Microsoft.EntityFrameworkCore`, `Microsoft.EntityFrameworkCore.SqlServer`, and `Microsoft.Extensions.Hosting`, which have all been updated to version 9.0.4.
- Updated `GamesContext` constructor to accept `DbContextOptions<GamesContext>`, removing the default constructor for better flexibility. - Enhanced `MappingExtensions` methods to use concise syntax and handle null values, improving robustness. - Removed retrieval of `IDbContextFactory<GamesContext>` in `Program.cs`, indicating a potential refactor. - Simplified initialization of `Fields` in `MoveData` classes using array initializer syntax for better readability.
Updated the `AddDbContextFactory` method for better readability. Changed the `Fields` property in `MoveData` from an object initializer to an array initializer. Switched from `SingleAsync` to `FindAsync` for game data retrieval, adding error handling for missing games.
Introduced a new `Seeding` sample with classes for menu management, including `ColumnNames`, `MenuCard`, and `MenuItem`. Implemented configurations for these entities using `IEntityTypeConfiguration`. Added compiled query extensions for efficient database access. Updated `MenusContext` to define `DbSet` properties and applied configurations. Created a `Runner` class for database operations and added an `appsettings.json` for configuration. Updated project to target .NET 9.0 and organized the solution structure.
Updated the `dotnet-ef` tool version from `6.0.3` to `9.0.4`. Modified the `commands` array to include the `dotnet-ef` command and added a new `rollForward` property set to `false`.
- Updated project files to target .NET 9.0. - Upgraded `Microsoft.EntityFrameworkCore` packages to version 9.0.4. - Added `launchSettings.json` for WSL support. - Introduced `LoadingRelatedData` namespace for better organization. - Refactored class constructors to use new C# 9.0 syntax. - Improved sample data generation methods for readability. - Updated `Runner` class to enhance clarity and reduce redundancy. - Refactored `Program.cs` to streamline application startup. - Ensured `appsettings.json` preserves the newest version. - Overall improvements for performance and maintainability.
- Updated `Program.cs` to call `await runner.EfficientUpdateAsync()`. - Modified menu item retrieval query in `Runner.cs` to use `EF.Functions.Like` for better pattern matching. - Introduced `EfficientUpdateAsync()` in `Runner` class to update menu item prices efficiently with logging. - Existing method `UpdateRecordUntrackedAsync()` remains unchanged.
Introduces a new method `QueryJsonAsync` in the `Runner` class to query and display orders containing monitor products. Updates `Program.cs` to call this method after database and orders creation, enhancing the program's functionality.
Updated Program.cs to use AzureCliCredential in DEBUG mode for easier local development. Upgraded target framework to .NET 8 in ConsoleApp.csproj, including version and language updates. Changed BooksConnection string in appsettings.json to a new database. Removed ModuleInitializer from Book.cs. Added .NET 8.0 info in Demo.cs.
Updated multiple project files to upgrade NuGet package references from version 9.0.4 to 9.0.9. This affects packages such as Microsoft.EntityFrameworkCore, Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.Cosmos, Microsoft.EntityFrameworkCore.Proxies, Microsoft.Extensions.Hosting, and Microsoft.Extensions.Configuration.UserSecrets. The updates are consistent across projects, aiming to incorporate bug fixes, performance improvements, and new features available in the newer version.
Refactored Program.cs to use Host.CreateApplicationBuilder instead of Host.CreateDefaultBuilder and ConfigureServices. Moved configuration and service registration to builder.Services and builder.Configuration. Improved error handling for missing connection strings. Updated scope creation and service resolution to use async patterns and modern .NET best practices. Modernizes startup and DI code for maintainability and compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Classification
Major upgrade and feature addition: updates projects to .NET 10.0 and Bootstrap 5.3.3, introduces new distributed .NET Aspire sample solutions, and adds advanced EF Core sample projects.
PR Summary
This pull request upgrades sample projects to .NET 10.0 and Bootstrap 5.3.3, adds new distributed .NET Aspire solutions, and introduces advanced EF Core samples with modern C# features and improved developer tooling.