Skip to content

Sync to EF 11.0.0-preview.4.26215.121#3814

Merged
roji merged 1 commit intomainfrom
roji/cyanopathic-nash
Apr 20, 2026
Merged

Sync to EF 11.0.0-preview.4.26215.121#3814
roji merged 1 commit intomainfrom
roji/cyanopathic-nash

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 20, 2026

Syncs EFCore.PG to use EF Core daily build 11.0.0-preview.4.26215.121 (from 11.0.0-preview.4.26210.110).

Changes

  • Directory.Packages.props: Updated EFCoreVersion and MicrosoftExtensionsVersion to 11.0.0-preview.4.26215.121
  • NpgsqlHistoryRepository.cs: Removed the copied EnsureModel() method — the base class HistoryRepository.EnsureModel() is now protected virtual instead of private
  • DateTimeOffsetTranslationsNpgsqlTest.cs: Added overrides for 6 new base test methods (DateTime, UtcDateTime, LocalDateTime, ToOffset, Ctor_DateTime, Ctor_DateTime_TimeSpan)
  • PrimitiveCollectionsQueryNpgsqlTest.cs: Added override for new Parameter_collection_of_enum_Cast_from_different_enum_type test
  • JsonTypesNpgsqlTest.cs: Updated signatures for Can_read_write_collection_of_TimeSpan_JSON_values and Can_read_write_collection_of_nullable_TimeSpan_JSON_values (added string expected parameter)

EF Core PRs that required changes

Test results

  • Unit tests: 495 passed, 6 skipped
  • Functional tests: 28,167 passed, 273 skipped, 0 failures

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 07:29
Copy link
Copy Markdown

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

Syncs EFCore.PG to EF Core daily build 11.0.0-preview.4.26215.121, updating dependency versions and aligning provider/test code with upstream EF Core API and test surface changes.

Changes:

  • Bumped EF Core + Microsoft.Extensions package versions to 11.0.0-preview.4.26215.121.
  • Simplified NpgsqlHistoryRepository by relying on EF Core’s now-overridable HistoryRepository.EnsureModel().
  • Updated/added overrides in functional tests to match new/changed EF Core tests and signatures.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Directory.Packages.props Updates EF Core and Microsoft.Extensions pinned versions to the new daily build.
src/EFCore.PG/Migrations/Internal/NpgsqlHistoryRepository.cs Removes local EnsureModel() copy and calls the base implementation, keeping history table creation filtering behavior.
test/EFCore.PG.FunctionalTests/Query/Translations/Temporal/DateTimeOffsetTranslationsNpgsqlTest.cs Adds overrides for newly introduced upstream DateTimeOffset translation tests and baselines/expected failures.
test/EFCore.PG.FunctionalTests/Query/PrimitiveCollectionsQueryNpgsqlTest.cs Adds baseline override for new enum-collection parameter translation test.
test/EFCore.PG.FunctionalTests/JsonTypesNpgsqlTest.cs Updates overridden method signatures to match upstream JSON test changes (added expected parameter).

Comment on lines 155 to 159
// Cannot override since the base test contains [InlineData] attributes which still apply, and which contain data we need
// to override. See Can_read_write_nullable_TimeSpan_JSON_values_npgsql instead.
// TODO: Implement Can_read_write_collection_of_TimeSpan_JSON_values_npgsql
public override Task Can_read_write_collection_of_TimeSpan_JSON_values()
public override Task Can_read_write_collection_of_TimeSpan_JSON_values(string expected)
=> Task.CompletedTask;
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

The comment says to see Can_read_write_nullable_TimeSpan_JSON_values_npgsql instead, but no such method exists in this class (and the TODO indicates it’s not implemented yet). This cross-reference is misleading—either implement the referenced *_npgsql test method or update the comment to point at the correct helper/placeholder for the TimeSpan collection case.

Copilot uses AI. Check for mistakes.
Comment on lines 161 to +165
// Cannot override since the base test contains [InlineData] attributes which still apply, and which contain data we need
// to override. See Can_read_write_nullable_TimeSpan_JSON_values_npgsql instead.
// TODO: Implement Can_read_write_collection_of_nullable_TimeSpan_JSON_values_npgsql
public override Task Can_read_write_collection_of_nullable_TimeSpan_JSON_values()
=> Task.CompletedTask;
public override Task Can_read_write_collection_of_nullable_TimeSpan_JSON_values(string expected)
=> Task.CompletedTask;
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

This comment points to Can_read_write_nullable_TimeSpan_JSON_values_npgsql, but that method isn’t implemented anywhere in this file. Consider updating the comment to reference the intended Can_read_write_collection_of_nullable_TimeSpan_JSON_values_npgsql (if that’s the plan) or adding the missing *_npgsql method so readers know where the provider-specific coverage lives.

Copilot uses AI. Check for mistakes.
@roji roji merged commit b2dce20 into main Apr 20, 2026
19 checks passed
@roji roji deleted the roji/cyanopathic-nash branch April 20, 2026 08:04
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