Skip to content

Conversation

@BlaiseD
Copy link
Member

@BlaiseD BlaiseD commented Dec 18, 2025

Supporting AutoMapper v16 and Microsoft.AspNetCore.OData v9.4.1

@BlaiseD BlaiseD requested a review from Copilot December 18, 2025 18:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project to support AutoMapper v16 and Microsoft.AspNetCore.OData v9.4.1, while adding support for .NET 10.0 across the codebase. The changes also include updates to test behavior related to OData cast and isOf operations, reflecting changes in how Microsoft.AspNetCore.OData v9.4.1 handles type casting.

Key changes:

  • Upgrades target frameworks from net9.0 to net10.0 and adds multi-targeting where appropriate
  • Updates package dependencies including Entity Framework Core 10.0.0, AutoMapper.Extensions.ExpressionMapping 10.0.0, and Microsoft.AspNetCore.OData 9.4.1
  • Modifies FilterHelper.cs to handle SingleResourceCastNode in addition to ConstantNode for cast/isOf operations
  • Updates test expectations to align with new OData behavior for cast and isOf operations with unquoted type parameters

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
WebAPI.OData.EFCore/WebAPI.OData.EFCore.csproj Updates target framework to net10.0 and EF Core packages to 10.0.0
WebAPI.OData.EF6/WebAPI.OData.EF6.csproj Updates target framework to net10.0
SeedDatabase/SeedDatabase.csproj Updates target framework to net10.0 and Microsoft packages to 10.0.0
MigrationTool/MigrationTool.csproj Updates target framework to net10.0 and EF Core packages to 10.0.0
ExpressionBuilder.Tests/FilterTests.cs Updates test expectations for cast/isOf operations to reflect new OData behavior
ExpressionBuilder.Tests/ExpressionBuilder.Tests.csproj Updates target framework property to net10.0
DAL.EFCore/DAL.EFCore.csproj Adds net10.0 to multi-targeting and includes EF Core 10.0.0 dependency
AutoMapper.OData.EFCore.Tests/AutoMapper.OData.EFCore.Tests.csproj Updates target framework to net10.0 and EF Core to 10.0.0
AutoMapper.OData.EF6.Tests/AutoMapper.OData.EF6.Tests.csproj Updates target framework to net10.0
AutoMapper.Extensions.OData.sln Updates Visual Studio version references to VS 2025
AutoMapper.AspNetCore.OData.EFCore/FilterHelper.cs Adds support for SingleResourceCastNode in cast and isOf operations
AutoMapper.AspNetCore.OData.EFCore/AutoMapper.AspNetCore.OData.EFCore.csproj Adds net10.0 multi-targeting and updates package dependencies to v16/v9.4.1
AutoMapper.AspNetCore.OData.EF6/AutoMapper.AspNetCore.OData.EF6.csproj Adds net10.0 multi-targeting and updates OData package to v9.4.1
.github/workflows/release.yml Updates .NET version in CI to 10.x
.github/workflows/ci.yml Updates .NET version in CI to 10.x

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BlaiseD BlaiseD merged commit 59825ac into master Dec 18, 2025
3 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