![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Databases.Sql.SqlServer --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases.Sql.SqlServer -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases.Sql.SqlServer" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases.Sql.SqlServer" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases.Sql.SqlServer" />Project file
paket add Rig.TUnit.Databases.Sql.SqlServer --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases.Sql.SqlServer, 0.1.0-beta.2"
#:package Rig.TUnit.Databases.Sql.SqlServer@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases.Sql.SqlServer&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases.Sql.SqlServer&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Testcontainers-backed SQL Server fixture using the
mcr.microsoft.com/mssql/server:2022-latestimage, integrated withMicrosoft.EntityFrameworkCore.SqlServer.
The Rig.TUnit SQL Server provider. SqlServerFixture spins the Microsoft
2022 Developer-edition container via Testcontainers and exposes a ready
ConnectionString. Integrates with the Rig.TUnit.Databases.Sql family
base for parity assertions and with EF Core via the standard
UseSqlServer(connectionString) wire.
OUTPUT INTO,
temporal tables, MERGE, rowversion).using Microsoft.EntityFrameworkCore;
using Rig.TUnit.Databases.Sql.SqlServer.Fixtures;
await using var fx = new SqlServerFixture();
await fx.InitializeAsync();
var opts = new DbContextOptionsBuilder<TestDb>()
.UseSqlServer(fx.ConnectionString)
.Options;
| Property | Type | Default | Description |
|---|---|---|---|
Image |
string |
"mcr.microsoft.com/mssql/server:2022-latest" |
Container image |
StartupTimeoutSeconds |
int |
180 |
SqlServer takes ~30-60s to warm |
SaPassword |
string |
"RigTUnit_P@ss1" |
SA password — must satisfy policy |
AcceptEula |
bool |
true |
Sets ACCEPT_EULA=Y |
Edition |
string |
"Developer" |
Express / Developer / Standard / Enterprise |
Rig.TUnit.Databases.Sql.SqlServer.Fixtures.SqlServerFixtureRig.TUnit.Databases.Sql.SqlServer.Options.SqlServerFixtureOptionsRig.TUnit.Databases.Sql.SqlServer.Builder.SqlServerRigBuilderUseSqlServer(RigBuilder, …) extensionDefault is one container per fixture class; per-test DB isolation via
CREATE DATABASE test_{IsolationKey} + DROP DATABASE in the Arrange /
teardown pair. For heavy use, one fixture per test-class is typical — full
per-test containers are cost-prohibitive for SqlServer's warm-up time.
The SA password does not meet SQL Server password policy — password
must have 8+ chars + upper + lower + digit + symbol. The default
RigTUnit_P@ss1 satisfies this; override carefully.-e MSSQL_MEMORY_LIMIT_MB=2048 in the Testcontainers config.Login failed for user 'sa' — ephemeral container health-check
reports ready before sa login is enabled. Fixture waits for a
successful SELECT 1 before returning, so normal calls are safe.See .
rowversion / timestamp is a binary concurrency token — EF maps it to
byte[] but reports DataType=Binary; use IsConcurrencyToken() in
OnModelCreating.SQL_Latin1_General_CP1_CI_AS (case
INsensitive). Tests relying on exact case must use a case-sensitive
collation.See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Databases.Sql.SqlServer:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 62 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 67 | 4/26/2026 |