Skip to content

[deps]: Update linq2db to v6#6767

Open
renovate[bot] wants to merge 13 commits into
mainfrom
renovate/linq2db-6.x
Open

[deps]: Update linq2db to v6#6767
renovate[bot] wants to merge 13 commits into
mainfrom
renovate/linq2db-6.x

Conversation

@renovate

@renovate renovate Bot commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
linq2db (source) 5.4.16.2.1 age confidence

Release Notes

linq2db/linq2db (linq2db)

v6.2.1: Release 6.2.1

This release contains only bugfixes.

Release notes
Nugets

Full Changelog: linq2db/linq2db@v6.2.0...v6.2.1

v6.2.0: Release 6.2.0

Release highlights:

  • a lot of fixes to reported issues including v6 regressions
  • various improvements to generated SQL
  • added stack guard for v
    isitors, could be managed using LinqToDB.Common.Configuration.TranslationThreadMaxHopCount setting
  • better handling of custom unary/binary operators and support for custom mappings for operators (in case of operator implementation violating contract)
  • support ~ operator translation for all databases
  • support for new .NET 6-10 LINQ operators: CountBy, Index, MaxBy, MinBy, ExceptBy, UnionBy, IntersectBy
  • [PostgreSQL] add timeout option support for native BulkCopy
  • [Oracle] fix found issues in NVARCHAR2 type mapping
  • [SQL Server 2005] scaffold support for JSON and VECTOR types
  • [ClickHouse] support for ClickHouse.Driver v0.9 and v1.0 provider versions. For v1.0+ provider we recommend to set ReadStringsAsByteArrays=true provider option
  • [YDB] continued provider implementation (still in progress)

Release notes
Nugets

Full Changelog: linq2db/linq2db@v6.1.0...v6.2.0

v6.1.0: Release 6.1.0

Release highlights:

  • fixes to reported issues and regressions
  • support of .NET 10 LeftJoin and RightJoin operators
  • re-enable DB2i support for LINQPad driver

Release notes
Nugets

Full Changelog: linq2db/linq2db@v6.0.0...v6.1.0

v6.0.0: Release 6.0.0

Since previous release candidate final release contains following changes:

  • .NET 10 support
  • EF.Core 10 integration
  • LINQPad driver releases now syncronized with Linq To DB releases
  • extension methods that vere available on DataConnection class now available for DataContext-based contexts too
  • DistinctBy support
  • Improved translation of aggregate and window functions
  • string.Join translation and better translation of Sql.ConcatStrings and Sql.StringAggregate calls
  • and many more small features and fixes to defects and regressions from prerelease versions

Provider-specific changes:

  • [Oracle] implement fixes for ORA-01704 string literal too long errors on big LOB parameters
  • [SQL Server 2025] Better VECTOR type support including mappings to float[] and mappings for vector functions
  • [SQLite] add System.Data.SQLite 2 provider support
  • [SQLite] fixes to all known issues n SQLite schema provider
  • added early preview of new provider for YDB database for early adopters

For full list of changes check this page

Release notes

Nugets

New Contributors

Full Changelog: linq2db/linq2db@v5.4.1...v6.0.0


Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@bitwarden-bot bitwarden-bot changed the title [deps]: Update linq2db to v6 [PM-30033] [deps]: Update linq2db to v6 Dec 22, 2025
@bitwarden-bot

Copy link
Copy Markdown
Collaborator

Internal tracking:

@renovate renovate Bot changed the title [PM-30033] [deps]: Update linq2db to v6 [deps]: Update linq2db to v6 Dec 22, 2025
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from 37c435d to 2ec1393 Compare December 22, 2025 13:39
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from 2ec1393 to 6a2f9d8 Compare February 2, 2026 15:45
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from 6a2f9d8 to 94276cc Compare February 12, 2026 12:17
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch 2 times, most recently from 689d8d2 to eab0e89 Compare February 24, 2026 14:23
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch 2 times, most recently from f9c85de to cd50adf Compare March 19, 2026 06:09
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from cd50adf to 652a0f1 Compare March 24, 2026 10:50
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from 652a0f1 to 5c7a078 Compare April 1, 2026 16:23
@renovate renovate Bot force-pushed the renovate/linq2db-6.x branch from 5c7a078 to 91e0748 Compare April 8, 2026 15:08
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details192a2e26-8659-4a2e-9d3e-c4d59ccbe7ba


Fixed Issues (8) Great job! The following issues were fixed in this Pull Request
Severity Issue Source File / Package
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/AccountBillingVNextController.cs: 55
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/AccountBillingVNextController.cs: 104
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/OrganizationBillingVNextController.cs: 107
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/OrganizationBillingVNextController.cs: 95
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/ProviderBillingVNextController.cs: 82
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/AccountBillingVNextController.cs: 93
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/OrganizationBillingVNextController.cs: 49
MEDIUM CSRF /src/Api/Billing/Controllers/VNext/ProviderBillingVNextController.cs: 40

@rkac-bw rkac-bw requested review from a team as code owners April 9, 2026 12:45
@rkac-bw rkac-bw requested a review from a team as a code owner April 9, 2026 13:03
@rkac-bw rkac-bw requested a review from enmande April 9, 2026 13:03
@renovate

renovate Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@codecov

codecov Bot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.69%. Comparing base (69ed2db) to head (52c61de).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6767      +/-   ##
==========================================
+ Coverage   58.45%   62.69%   +4.24%     
==========================================
  Files        2067     2067              
  Lines       91049    91049              
  Branches     8098     8098              
==========================================
+ Hits        53219    57086    +3867     
+ Misses      35927    31978    -3949     
- Partials     1903     1985      +82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rkac-bw

rkac-bw commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@withinfocus All CI checks passing. This PR now includes both the linq2db 5.4.1 to 6.2.1 upgrade and linq2db.EntityFrameworkCore 8.1.0 to 8.5.0 (absorbing #6764), since these packages must be upgraded together:

linq2db.EntityFrameworkCore8.1.0 usesLinqToDB.Linq.Internals` which was removed in linq2db 6.x.

Code changes needed for the upgrade:

  • Replaced using LinqToDB; with using Microsoft.EntityFrameworkCore; in 6 files where async query methods (ToListAsync, ToArrayAsync, FirstOrDefaultAsync, FirstAsync, SingleAsync) were sourced from LinqToDB — these were removed in 6.x. The EF Core equivalents are the standard pattern used across the other 81 files in this project.

  • Files using LinqToDB-specific methods (UpdateAsync for bulk updates) retain using LinqToDB; alongside using Microsoft.EntityFrameworkCore;.

Tested locally: build, full migration from scratch, and server startup all pass.

#6764 can be closed once this pr is approved and merges.

@withinfocus withinfocus added the ai-review Request a Claude code review label Apr 9, 2026
@withinfocus

Copy link
Copy Markdown
Contributor

@rkac-bw database tests are failing.

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="linq2db" Version="5.4.1" />
<PackageReference Include="linq2db" Version="6.2.1" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ Renovate isn't playing nicely with the pinning we are doing here and this needs the brackets.

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR upgrades linq2db from 5.4.1 to 6.2.1 and linq2db.EntityFrameworkCore from 8.1.0 to 8.5.0, a major version bump initiated by Renovate with human modifications for bracket pinning. The accompanying code changes correctly migrate using LinqToDB; to using Microsoft.EntityFrameworkCore; in files that only consume standard EF Core extension methods (ToListAsync, ToArrayAsync, FirstOrDefaultAsync), while retaining the LinqToDB import where LinqToDB-specific methods like UpdateAsync are used. CI checks are still pending at time of review; database test results should be confirmed before merge.

Code Review Details

No actionable findings identified. The using directive changes are consistent with the methods actually called in each file, and the bracket version pinning has been applied correctly.

Dependency Changes

Package Change Ecosystem
linq2db 5.4.1 → 6.2.1 (major) NuGet
linq2db.EntityFrameworkCore 8.1.0 → 8.5.0 NuGet

@withinfocus withinfocus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works for me. Time to capture all the team approvals though.

@sonarqubecloud

sonarqubecloud Bot commented Apr 9, 2026

Copy link
Copy Markdown

@enmande enmande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Auth changes LGTM; thank you!

using Duende.IdentityServer.Models;
using Duende.IdentityServer.Stores;
using LinqToDB;
using Microsoft.EntityFrameworkCore;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Per review comment here, and linq2db wiki.
Supports, e.g., FirstAsync in these tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review major-update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants