Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commands": [
"dotnet-ef"
],
"rollForward": false
"rollForward": true
}
}
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ body:
attributes:
label: Environment
description: OS + .NET version.
placeholder: "Windows 11, .NET 10.0.x"
placeholder: "Windows 11, .NET 11.0.x"

- type: checkboxes
id: checks
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
-PreviousRef 2f141433298bcd3137e2bcaa2930c796c4222092 `
-CandidateRef $env:CANDIDATE_REF `
-OutputPath $env:COMPATIBILITY_OUTPUT `
-UseHarnessSdk `
-BuildOnly

- name: Upload compatibility evidence
Expand Down Expand Up @@ -275,7 +276,7 @@ jobs:
run: |
$executableName = if ($IsWindows) { 'CSharpDB.Native.ArchiveSmoke.exe' } else { 'CSharpDB.Native.ArchiveSmoke' }
$executable = Join-Path 'artifacts/native-archive-smoke/${{ matrix.rid }}' $executableName
$library = [IO.Path]::GetFullPath('src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }}')
$library = [IO.Path]::GetFullPath('src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }}')
if (-not (Test-Path -LiteralPath $executable -PathType Leaf)) { throw "Archive smoke executable missing: $executable" }
if (-not (Test-Path -LiteralPath $library -PathType Leaf)) { throw "Native library missing: $library" }
& $executable $library
Expand Down Expand Up @@ -304,11 +305,11 @@ jobs:

- name: Verify exported symbols (Linux)
if: runner.os == 'Linux'
run: nm -D src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_
run: nm -D src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_

- name: Verify exported symbols (macOS)
if: runner.os == 'macOS'
run: nm -gU src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_
run: nm -gU src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_

- name: Verify exported symbols (Windows)
if: runner.os == 'Windows'
Expand All @@ -325,14 +326,14 @@ jobs:
throw "Could not locate dumpbin.exe from the installed Visual Studio toolchain."
}

& $dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\${{ matrix.rid }}\publish\${{ matrix.lib }} |
& $dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\${{ matrix.rid }}\publish\${{ matrix.lib }} |
Select-String "csharpdb_"

- name: Upload native library
uses: actions/upload-artifact@v7
with:
name: native-${{ matrix.rid }}
path: src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }}
path: src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }}
if-no-files-found: error

- name: Upload C header (once)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/perf-guardrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
-BaseRoot .tmp/perf-guardrails/base `
-HeadRoot .tmp/perf-guardrails/head `
-OutputPath .tmp/perf-guardrails/evidence `
-UseHarnessSdk `
-Configuration Release -Mode $mode -NoFailOnRegression:$reportOnly `
-MicroArguments @('--warmupCount', '2', '--iterationCount', '3', '--iterationTime', '100', '--buildTimeout', '600')

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ jobs:

- name: Verify exported symbols (Linux)
if: runner.os == 'Linux'
run: nm -D src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_
run: nm -D src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_

- name: Verify exported symbols (macOS)
if: runner.os == 'macOS'
run: nm -gU src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_
run: nm -gU src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_

- name: Verify exported symbols (Windows)
if: runner.os == 'Windows'
Expand All @@ -380,14 +380,14 @@ jobs:
throw "Could not locate dumpbin.exe from the installed Visual Studio toolchain."
}

& $dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\${{ matrix.rid }}\publish\${{ matrix.lib }} |
& $dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\${{ matrix.rid }}\publish\${{ matrix.lib }} |
Select-String "csharpdb_"

- name: Upload native library
uses: actions/upload-artifact@v7
with:
name: native-${{ matrix.rid }}
path: src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }}
path: src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }}
if-no-files-found: error

- name: Upload C header (once)
Expand Down Expand Up @@ -581,7 +581,7 @@ jobs:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sql-release-qualification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
-PreviousRef $env:PREVIOUS_RELEASE_REF `
-CandidateRef $env:CANDIDATE_REF `
-OutputPath $env:PERFORMANCE_OUTPUT `
-UseHarnessSdk `
-QualificationPass 1 `
-Paired `
-SuiteName master-table-hosted-stable `
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Thanks for your interest in contributing.

## Development Setup

Prerequisite: [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0)
Prerequisite: [.NET 11 SDK](https://dotnet.microsoft.com/download/dotnet/11.0)

```bash
dotnet --version
Expand Down Expand Up @@ -48,7 +48,7 @@ The `CSharpDB.Native` project produces a standalone C-compatible shared library

### Prerequisites

In addition to the .NET 10 SDK, you need a native linker:
In addition to the .NET 11 SDK, you need a native linker:

| Platform | Requirement |
|----------|-------------|
Expand All @@ -69,7 +69,7 @@ dotnet publish src/CSharpDB.Native -c Release -r linux-x64
dotnet publish src/CSharpDB.Native -c Release -r osx-arm64
```

Output goes to `src/CSharpDB.Native/bin/Release/net10.0/<rid>/publish/`:
Output goes to `src/CSharpDB.Native/bin/Release/net11.0/<rid>/publish/`:
- Windows: `CSharpDB.Native.dll`
- Linux: `CSharpDB.Native.so`
- macOS: `CSharpDB.Native.dylib`
Expand All @@ -90,13 +90,13 @@ After publishing, verify the library exports the expected C symbols:

```bash
# Linux
nm -D src/CSharpDB.Native/bin/Release/net10.0/linux-x64/publish/CSharpDB.Native.so | grep csharpdb_
nm -D src/CSharpDB.Native/bin/Release/net11.0/linux-x64/publish/CSharpDB.Native.so | grep csharpdb_

# macOS
nm -gU src/CSharpDB.Native/bin/Release/net10.0/osx-arm64/publish/CSharpDB.Native.dylib | grep csharpdb_
nm -gU src/CSharpDB.Native/bin/Release/net11.0/osx-arm64/publish/CSharpDB.Native.dylib | grep csharpdb_

# Windows (Developer Command Prompt or PowerShell)
dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\win-x64\publish\CSharpDB.Native.dll | Select-String "csharpdb_"
dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\win-x64\publish\CSharpDB.Native.dll | Select-String "csharpdb_"
```

You should see 20 exported functions prefixed with `csharpdb_`.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="https://www.nuget.org/packages/CSharpDB"><img src="https://img.shields.io/nuget/dt/CSharpDB?label=Downloads" alt="NuGet downloads"></a>
<a href="https://github.com/MaxAkbar/CSharpDB/actions/workflows/perf-guardrails.yml"><img src="https://github.com/MaxAkbar/CSharpDB/actions/workflows/perf-guardrails.yml/badge.svg" alt="Perf Guardrails"></a>
<a href="https://github.com/MaxAkbar/CSharpDB"><img src="https://img.shields.io/github/stars/MaxAkbar/CSharpDB?label=Stars" alt="GitHub stars"></a>
<a href="https://dotnet.microsoft.com/download/dotnet/10.0"><img src="https://img.shields.io/badge/.NET-10-512bd4" alt=".NET 10"></a>
<a href="https://dotnet.microsoft.com/download/dotnet/11.0"><img src="https://img.shields.io/badge/.NET-11-512bd4" alt=".NET 11"></a>
<a href="https://github.com/MaxAkbar/CSharpDB"><img src="https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-0f766e" alt="Platform: Windows, Linux, macOS"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://github.com/MaxAkbar/CSharpDB/releases/latest"><img src="https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release" alt="Release"></a>
Expand Down Expand Up @@ -167,7 +167,7 @@ remains outside this slice, and INTEGER-tag values must be exactly representable
within `±2^53`.

The separate [`csharpdb-ef` migration analyzer](src/CSharpDB.EntityFrameworkCore.Tools/README.md)
can inspect a restored `net10.0` project's compiled migration chain through the
can inspect a restored `net11.0` project's compiled migration chain through the
provider's real design-time services and SQL generator without adding EF Core
design dependencies to the base CLI. Generation-only analysis remains the
default. Its explicit `--scratch` tier applies every supported migration prefix
Expand Down
2 changes: 1 addition & 1 deletion clients/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TypeScript/JavaScript client for [CSharpDB](https://github.com/MaxAkbar/CSharpDB

## Prerequisites

1. **Publish the native library** (requires .NET 10 SDK + C++ toolchain):
1. **Publish the native library** (requires .NET 11 SDK + C++ toolchain):

```bash
# Windows
Expand Down
2 changes: 1 addition & 1 deletion clients/node/examples/basic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* 2. Copy the library to ./native/:
* mkdir -p native
* cp src/CSharpDB.Native/bin/Release/net10.0/win-x64/publish/CSharpDB.Native.dll native/
* cp src/CSharpDB.Native/bin/Release/net11.0/win-x64/publish/CSharpDB.Native.dll native/
*
* 3. npm install && npm run build && node examples/basic.mjs
*/
Expand Down
4 changes: 2 additions & 2 deletions deploy/migration-tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Access adapter.
## Runtime requirement

This is a framework-dependent release, not a self-contained application.
Install the Microsoft .NET 10 runtime for this archive's operating system and
Install the Microsoft .NET 11 runtime for this archive's operating system and
architecture before running the CLI:

```text
Microsoft.NETCore.App 10.x
Microsoft.NETCore.App 11.x
```

Packaging a runtime-specific app host does not establish runtime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Usage:
--install-dir <directory> [--source-dir <archive-root>] [--force]

Copies an extracted, framework-dependent CSharpDB migration CLI release to a
caller-selected directory. The Microsoft .NET 10 runtime must already be
caller-selected directory. The Microsoft .NET 11 runtime must already be
installed. The script does not require root, create a service, or change PATH.

The destination must be absent or empty. --force permits colliding files in a
Expand Down Expand Up @@ -148,10 +148,10 @@ if [ -e "$INSTALL_DIR" ] || [ -L "$INSTALL_DIR" ]; then
fi

command -v dotnet >/dev/null 2>&1 ||
fail 'The framework-dependent migration CLI requires the Microsoft .NET 10 runtime.'
fail 'The framework-dependent migration CLI requires the Microsoft .NET 11 runtime.'
dotnet --list-runtimes |
grep -Eq '^Microsoft\.NETCore\.App 10\.' ||
fail 'Install the Microsoft .NET 10 runtime before installing the migration CLI.'
grep -Eq '^Microsoft\.NETCore\.App 11\.' ||
fail 'Install the Microsoft .NET 11 runtime before installing the migration CLI.'

mkdir -p -- "$INSTALL_DIR"
# The source and destination trees are link-free, so cp cannot redirect a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requesting elevation, or changing PATH. The destination must be absent or
empty unless -Force is supplied. -Force overwrites colliding files but does
not delete unrelated destination files.

The .NET 10 runtime must already be installed.
The .NET 11 runtime must already be installed.

.PARAMETER InstallDirectory
Existing empty directory or one new leaf directory beneath an existing,
Expand Down Expand Up @@ -276,18 +276,18 @@ $dotnet = Get-Command `
-CommandType Application `
-ErrorAction SilentlyContinue
if ($null -eq $dotnet) {
throw 'The framework-dependent migration CLI requires the .NET 10 runtime, but dotnet was not found.'
throw 'The framework-dependent migration CLI requires the .NET 11 runtime, but dotnet was not found.'
}
$installedRuntimes = @(
& $dotnet.Source --list-runtimes 2>$null)
if ($LASTEXITCODE -ne 0 -or
-not (
$installedRuntimes |
Where-Object {
$_ -match '^Microsoft\.NETCore\.App 10\.'
$_ -match '^Microsoft\.NETCore\.App 11\.'
}))
{
throw 'Install the Microsoft .NET 10 runtime before installing the migration CLI.'
throw 'Install the Microsoft .NET 11 runtime before installing the migration CLI.'
}

if (-not $PSCmdlet.ShouldProcess(
Expand Down
43 changes: 43 additions & 0 deletions docs/design/benchmarks/dotnet11-2026-11-14/all-results.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"Pair","Target","Name","Rate","Bytes","Cpu","P95"
"1","net10.0","Parse SELECT","468927.93552240886","5968.159845434694","2.1241933729698377","186.3"
"1","net10.0","Cached PK lookup (10K rows)","1760136.117989791","631.9201942463261","0.5636992590772447","1"
"1","net10.0","Full scan materialized (10K rows)","658.1569197046559","2889040.628820961","1492.1919498765901","2536.6"
"1","net10.0","ORDER BY materialized (10K rows)","317.3733417242895","2898528.6805829066","3138.538794801103","4423.5"
"1","net10.0","In-memory single INSERT","269246.55479624774","1938.6918282207678","3.706811224276616","4.4"
"1","net10.0","Durable single INSERT","279.3676142186991","3393.675167785235","223.71364653243847","3810.4"
"1","net10.0","Durable prepared batch (100 rows)","26532.56129537188","131.0308054639661","3.6063353744700897","3934.1"
"1","net11.0","Parse SELECT","482277.4077589333","5968.15983246247","2.069434508998922","181.2"
"1","net11.0","Cached PK lookup (10K rows)","1850495.1018688113","631.9202056800879","0.5382849900779934","0.9"
"1","net11.0","Full scan materialized (10K rows)","698.1566041002866","2889040.5929108486","1423.7602935911207","2319"
"1","net11.0","ORDER BY materialized (10K rows)","319.9408869218801","2898521.29375","3100.5859375","4364"
"1","net11.0","In-memory single INSERT","272642.0841036874","1879.4795595141434","3.646320703376267","4.5"
"1","net11.0","Durable single INSERT","293.2905323266899","3333.1878994461013","372.8163613123136","3606.2"
"1","net11.0","Durable prepared batch (100 rows)","27702.337397525716","130.41937753721245","3.1010374379792514","3778.8"
"2","net10.0","Parse SELECT","457287.8488440943","5968.159870193485","2.186767432909975","188.6"
"2","net10.0","Cached PK lookup (10K rows)","1765606.3087897634","631.9202138132289","0.5641652432298224","1"
"2","net10.0","Full scan materialized (10K rows)","668.6986940926957","2889040.6190654207","1489.4859813084113","2489.2"
"2","net10.0","ORDER BY materialized (10K rows)","321.5692720451546","2898528.8021764476","3109.2110376991836","4274.6"
"2","net10.0","In-memory single INSERT","273753.77918617724","1934.9692346820661","3.65291632858165","4.4"
"2","net10.0","Durable single INSERT","283.80456325495715","3387.0788199031263","275.2091589608102","3771.4"
"2","net10.0","Durable prepared batch (100 rows)","26762.133358772986","130.9431854273704","4.670714619336758","3902.8"
"2","net11.0","Parse SELECT","440219.69134977093","5968.159836810351","2.262697513084248","196.3"
"2","net11.0","Cached PK lookup (10K rows)","1892737.4964525008","631.9201717247826","0.5273032722505223","0.9"
"2","net11.0","Full scan materialized (10K rows)","686.0491315416656","2889040.6033885954","1454.6137730005466","2330.3"
"2","net11.0","ORDER BY materialized (10K rows)","322.43467473489875","2898521.041860465","3100.7751937984494","4314.7"
"2","net11.0","In-memory single INSERT","283395.31832093635","1871.4648465946207","3.514855350056436","4.2"
"2","net11.0","Durable single INSERT","273.023950423149","3334.3963386727687","471.96796338672766","4265.5"
"2","net11.0","Durable prepared batch (100 rows)","27213.37716661214","130.51955922865014","5.021808999081727","3837.1"
"3","net10.0","Parse SELECT","449476.0389924064","5968.159846934235","2.2117571972056598","191"
"3","net10.0","Cached PK lookup (10K rows)","1716290.1641854919","631.9201737584887","0.5621681705643903","1"
"3","net10.0","Full scan materialized (10K rows)","657.158507106848","2889040.629897299","1482.859452263218","2513"
"3","net10.0","ORDER BY materialized (10K rows)","302.644229624799","2898528.7134599504","3303.0553261767136","4556.9"
"3","net10.0","In-memory single INSERT","268367.5042346231","1939.302913307818","3.7043984906897767","4.5"
"3","net10.0","Durable single INSERT","288.7064197659363","3392.737662337662","223.21428571428572","3658.7"
"3","net10.0","Durable prepared batch (100 rows)","28146.09543291107","131.0459325044405","4.093583481349911","3708.1"
"3","net11.0","Parse SELECT","487557.13560182834","5968.159881860694","2.0510296168676674","180.5"
"3","net11.0","Cached PK lookup (10K rows)","1885908.4057045798","631.9201896592544","0.5292127772900965","0.9"
"3","net11.0","Full scan materialized (10K rows)","663.3486982241154","2889040.624081402","1504.4987752025627","2472.4"
"3","net11.0","ORDER BY materialized (10K rows)","319.2957348338275","2898521.033268102","3039.3835616438355","4206.2"
"3","net11.0","In-memory single INSERT","277568.52447557385","1875.7402301231677","3.602711040057643","4.3"
"3","net11.0","Durable single INSERT","272.0387909071615","3333.016077170418","258.3830960036748","5044.4"
"3","net11.0","Durable prepared batch (100 rows)","26813.55563928371","130.19157502329915","5.315121155638397","4017.7"
Loading
Loading