DbSqlLikeMem.LinqToDb 1.11.0

dotnet add package DbSqlLikeMem.LinqToDb --version 1.11.0
                    
NuGet\Install-Package DbSqlLikeMem.LinqToDb -Version 1.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DbSqlLikeMem.LinqToDb" Version="1.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbSqlLikeMem.LinqToDb" Version="1.11.0" />
                    
Directory.Packages.props
<PackageReference Include="DbSqlLikeMem.LinqToDb" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DbSqlLikeMem.LinqToDb --version 1.11.0
                    
#r "nuget: DbSqlLikeMem.LinqToDb, 1.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DbSqlLikeMem.LinqToDb@1.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DbSqlLikeMem.LinqToDb&version=1.11.0
                    
Install as a Cake Addin
#tool nuget:?package=DbSqlLikeMem.LinqToDb&version=1.11.0
                    
Install as a Cake Tool

DbSqlLikeMem Packages

English

DbSqlLikeMem is an in-memory SQL testing ecosystem for .NET. It helps you test repositories, services, and data-access code without requiring a real database server for each test run.

Why use it

  • Faster and deterministic tests
  • No container or external database required for most test scenarios
  • SQL dialect coverage across multiple providers
  • ADO.NET-friendly behavior, with support layers for common testing stacks (for example, Dapper, EF Core, NHibernate, LinqToDB)

Main provider packages

  • DbSqlLikeMem (core)
  • DbSqlLikeMem.MySql
  • DbSqlLikeMem.SqlServer
  • DbSqlLikeMem.SqlAzure
  • DbSqlLikeMem.Oracle
  • DbSqlLikeMem.Npgsql
  • DbSqlLikeMem.Sqlite
  • DbSqlLikeMem.Db2

Install

dotnet add package DbSqlLikeMem

Add the provider package that matches your SQL dialect, for example:

dotnet add package DbSqlLikeMem.SqlServer

Quick usage example

using DbSqlLikeMem.MySql;

var db = new MySqlDbMock(version: 8);
var users = db.AddTable("users");
users.AddColumn("Id", DbType.Int32, false);
users.AddColumn("Name", DbType.String, false);
users.AddPrimaryKeyIndexes("id");

using var cnn = new MySqlConnectionMock(db);
cnn.Open();

using var cmd = cnn.CreateCommand();
cmd.CommandText = "INSERT INTO users (Id, Name) VALUES (1, 'Alice')";
cmd.ExecuteNonQuery();

Target frameworks

Core and provider packages target modern .NET and legacy enterprise scenarios, including net462, netstandard2.0, net8.0 (with package-specific variations where applicable).

Documentation and contribution

  • Repository docs: README.md (project root)
  • Getting started: docs/getting-started.md
  • Compatibility notes: docs/old/providers-and-features.md

Contributions are welcome through issues and pull requests.


Português

DbSqlLikeMem é um ecossistema de testes SQL em memória para .NET. Ele permite testar repositórios, serviços e código de acesso a dados sem precisar subir um banco real em cada execução de teste.

Por que usar

  • Testes mais rápidos e determinísticos
  • Sem necessidade de container ou banco externo na maioria dos cenários
  • Cobertura de dialetos SQL em múltiplos provedores
  • Comportamento compatível com ADO.NET, com camadas de suporte para stacks comuns de teste (por exemplo, Dapper, EF Core, NHibernate, LinqToDB)

Pacotes principais de provedor

  • DbSqlLikeMem (core)
  • DbSqlLikeMem.MySql
  • DbSqlLikeMem.SqlServer
  • DbSqlLikeMem.SqlAzure
  • DbSqlLikeMem.Oracle
  • DbSqlLikeMem.Npgsql
  • DbSqlLikeMem.Sqlite
  • DbSqlLikeMem.Db2

Instalação

dotnet add package DbSqlLikeMem

Adicione também o pacote de provedor correspondente ao seu dialeto SQL, por exemplo:

dotnet add package DbSqlLikeMem.SqlServer

Exemplo rápido de uso

using DbSqlLikeMem.MySql;

var db = new MySqlDbMock(version: 8);
var users = db.AddTable("users");
users.AddColumn("Id", DbType.Int32, false);
users.AddColumn("Name", DbType.String, false);
users.AddPrimaryKeyIndexes("id");

using var cnn = new MySqlConnectionMock(db);
cnn.Open();

using var cmd = cnn.CreateCommand();
cmd.CommandText = "INSERT INTO users (Id, Name) VALUES (1, 'Alice')";
cmd.ExecuteNonQuery();

Frameworks alvo

Os pacotes core e de provedores cobrem cenários modernos e legados do .NET, incluindo net462, netstandard2.0, net8.0 (com variações específicas por pacote quando aplicável).

Documentação e contribuição

  • Documentação principal: README.md (raiz do projeto)
  • Guia de início: docs/getting-started.md
  • Notas de compatibilidade: docs/old/providers-and-features.md

Contribuições são bem-vindas por meio de issues e pull requests.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on DbSqlLikeMem.LinqToDb:

Package Downloads
DbSqlLikeMem.MySql.LinqToDb

LinqToDB integration helpers for DbSqlLikeMem MySql provider.

DbSqlLikeMem.SqlServer.LinqToDb

LinqToDB integration helpers for DbSqlLikeMem SqlServer provider.

DbSqlLikeMem.Db2.LinqToDb

LinqToDB integration helpers for DbSqlLikeMem Db2 provider.

DbSqlLikeMem.Npgsql.LinqToDb

LinqToDB integration helpers for DbSqlLikeMem Npgsql provider.

DbSqlLikeMem.Sqlite.LinqToDb

LinqToDB integration helpers for DbSqlLikeMem Sqlite provider.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.11.0 20 3/6/2026
1.10.0 62 3/5/2026
1.9.0 122 3/4/2026
1.8.2 226 3/1/2026
1.8.1 224 2/28/2026
1.8.0 229 2/28/2026
1.7.0 231 2/27/2026
1.6.1 233 2/27/2026
1.6.0 229 2/26/2026
1.5.1 227 2/25/2026
1.5.0 223 2/25/2026
1.4.0 237 2/22/2026

See release notes and changelog in the GitHub repository.