DtoOrm.Cli
0.1.0-alpha
This is a prerelease version of DtoOrm.Cli.
dotnet tool install --global DtoOrm.Cli --version 0.1.0-alpha
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local DtoOrm.Cli --version 0.1.0-alpha
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DtoOrm.Cli&version=0.1.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DtoOrm.Cli --version 0.1.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DtoOrm
A lightweight, DTO-first ORM for .NET that maps plain C# record/class types directly to SQL queries without code-generation ceremony at runtime.
Packages
| Package | Description |
|---|---|
DtoOrm.Core |
Query DSL, parameterized SQL builder, and reflection-based DTO mapper |
DtoOrm.MariaDb |
MariaDB/MySQL provider built on MySqlConnector |
DtoOrm.Generator |
Roslyn source generator that emits typed table/column constants from a schema snapshot |
DtoOrm.Cli |
dotnet tool that reads MariaDB information_schema and writes a dtoorm.schema.json snapshot |
Quick Start
# 1. Install the CLI tool
dotnet tool install -g DtoOrm.Cli
# 2. Snapshot your database schema
dtoorm --connection-string "Server=localhost;Database=mydb;User=root;Password=secret;"
# 3. Reference the packages
dotnet add package DtoOrm.MariaDb
dotnet add package DtoOrm.Generator
// Register the ORM (e.g. in Program.cs)
builder.Services.AddSingleton<IDbConnectionFactory>(
new MariaDbConnectionFactory(connectionString));
builder.Services.AddScoped<OrmSession>();
// Query
var users = await session
.From(Tables.Users)
.Where(Users.IsActive, true)
.SelectAsync<UserDto>();
Requirements
- .NET 8
- MariaDB 10.5+ or MySQL 8+
License
MIT © Nikolaj Hansen
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha | 53 | 5/22/2026 |