Skip to content

Conversation

@Jaben
Copy link
Collaborator

@Jaben Jaben commented Dec 3, 2025

Summary

  • Upgrade target framework from .NET 9 to .NET 10
  • Upgrade Entity Framework Core packages from 9.0.0 to 10.0.0
  • Update CI/CD pipeline to use .NET 10.x
  • Document EF Core 10 behavior changes in README

Changes

Package Updates

  • TargetFramework: net9.0net10.0
  • Microsoft.EntityFrameworkCore: 9.0.010.0.0
  • Microsoft.EntityFrameworkCore.SqlServer: 9.0.010.0.0
  • Microsoft.EntityFrameworkCore.Sqlite: 9.0.010.0.0

Code Changes

  • Removed try/catch block in DbContextExtensions.cs that caught an exception EF Core 10 no longer throws
  • Updated test Apply_Changes_Should_Mark_Unchanged_Order_Deleted_Customer_With_Addresses_Multiple_Added to reflect new EF Core 10 behavior

Documentation

  • Updated README to reference EF Core 10
  • Added EF Core v9 to previous versions list
  • Added new "EF Core 10 Behavior Changes" section documenting the relaxed validation for deleted parent with added children

EF Core 10 Breaking Change

EF Core 10 no longer throws InvalidOperationException when attempting to delete an entity that has children marked as Added. This validation has been relaxed, and the operation now proceeds with child entities being set to Deleted along with their parent.

Test plan

  • All 100 tests pass
  • Build succeeds with no warnings

- Update TargetFramework to net10.0
- Update Microsoft.EntityFrameworkCore packages to 10.0.0
- Update GitHub Actions workflow to use .NET 10.x
- Update README for EF Core 10, add v9 to previous versions
- Document EF Core 10 behavior change for deleted parent with added children
- Update test to reflect EF Core 10 relaxed validation behavior
- Remove try/catch for exception no longer thrown in EF Core 10
@Jaben Jaben merged commit 50fde6d into develop Dec 4, 2025
2 checks passed
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