Dreamine.Database.Abstractions 1.0.1

dotnet add package Dreamine.Database.Abstractions --version 1.0.1
                    
NuGet\Install-Package Dreamine.Database.Abstractions -Version 1.0.1
                    
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="Dreamine.Database.Abstractions" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dreamine.Database.Abstractions" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Dreamine.Database.Abstractions" />
                    
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 Dreamine.Database.Abstractions --version 1.0.1
                    
#r "nuget: Dreamine.Database.Abstractions, 1.0.1"
                    
#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 Dreamine.Database.Abstractions@1.0.1
                    
#: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=Dreamine.Database.Abstractions&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Dreamine.Database.Abstractions&version=1.0.1
                    
Install as a Cake Tool

Dreamine.Database.Abstractions

Dreamine.Database.Abstractions defines the provider-neutral contracts for the Dreamine Database package family.

Korean documentation

Package Role

This package is the lowest-level database contract layer. It contains only shared options, provider identifiers, mapping attributes, and the IDatabaseProvider CRUD contract.

Application / Samples / Tests
        ↓
Dreamine.Database.Abstractions
        ↑
Database.Core / SQLite / MySQL / Oracle / SQL Server

Concrete database providers should depend on this package instead of exposing vendor-specific APIs to application code.

Features

  • IDatabaseProvider common CRUD contract
  • DatabaseProviderKind provider identifier
  • DatabaseConnectionOptions connection metadata
  • Mapping attributes for table, key, generated, ignored, and column names
  • Sync and async APIs for database initialization, table checks, commands, scalar queries, reads, inserts, updates, and deletes

Mapping Attributes

Attribute Purpose
DatabaseTableAttribute Overrides the table name for an entity.
DatabaseColumnAttribute Overrides the column name for a property.
DatabaseKeyAttribute Marks the primary key property.
DatabaseGeneratedAttribute Marks a database-generated key column.
DatabaseIgnoreAttribute Excludes a property from database mapping.

Minimal Entity

using Dreamine.Database.Abstractions.Mapping;

[DatabaseTable("SampleCustomers")]
public sealed class SampleCustomer
{
    [DatabaseKey]
    [DatabaseGenerated]
    public int Id { get; set; }

    public string Name { get; set; } = string.Empty;

    public string Role { get; set; } = string.Empty;

    public DateTime CreatedAt { get; set; }
}

Design Principles

  • Keep application code independent from concrete database drivers.
  • Keep mapping metadata small and attribute-based.
  • Keep provider APIs consistent across SQLite, MySQL, Oracle, and SQL Server.
  • Avoid bringing Dapper or vendor driver dependencies into the contract package.

Dependencies

None.

Target Framework

net8.0
  • Dreamine.Database.Core
  • Dreamine.Database.Sqlite
  • Dreamine.Database.MySql
  • Dreamine.Database.Oracle
  • Dreamine.Database.SqlServer

Samples and Tests

  • Unit tests: 20_SOURCES/200. Tests/Dreamine.FullKit.Tests/Database
  • WPF sample: 20_SOURCES/998. DEMO/000. Sample/010. Wpfs/SampleSmart/Pages/PageSub/PageDatabase.xaml

License

MIT License

Product 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.
  • net8.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Dreamine.Database.Abstractions:

Package Downloads
Dreamine.Database.Core

Core database runtime for Dreamine Database, including Dapper-based provider helpers and entity mapping.

Dreamine.Database.FullKit

All-in-one meta package for Dreamine Database libraries. Includes Abstractions, Core, and providers for MySQL, Oracle, SQL Server, and SQLite.

Dreamine.Database.SqlServer

SQL Server provider for Dreamine Database.

Dreamine.Database.MySql

MySQL provider for Dreamine Database.

Dreamine.Database.Sqlite

SQLite provider for Dreamine Database.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 220 7/8/2026
1.0.0 212 7/8/2026