Dreamine.Database.Core
1.0.1
dotnet add package Dreamine.Database.Core --version 1.0.1
NuGet\Install-Package Dreamine.Database.Core -Version 1.0.1
<PackageReference Include="Dreamine.Database.Core" Version="1.0.1" />
<PackageVersion Include="Dreamine.Database.Core" Version="1.0.1" />
<PackageReference Include="Dreamine.Database.Core" />
paket add Dreamine.Database.Core --version 1.0.1
#r "nuget: Dreamine.Database.Core, 1.0.1"
#:package Dreamine.Database.Core@1.0.1
#addin nuget:?package=Dreamine.Database.Core&version=1.0.1
#tool nuget:?package=Dreamine.Database.Core&version=1.0.1
Dreamine.Database.Core
Dreamine.Database.Core provides the shared runtime implementation used by concrete Dreamine database providers.
Package Role
This package implements provider-independent CRUD, SQL generation, entity mapping, Dapper integration, and database-provider base behavior.
Dreamine.Database.Abstractions
↑
Dreamine.Database.Core
↑
SQLite / MySQL / Oracle / SQL Server providers
Concrete providers supply connection creation, identifier quoting, provider-specific SQL types, and table creation dialects.
Features
- Attribute-based entity map generation
- Common
DatabaseProviderBase - Dapper-backed command, scalar, query, insert, update, and delete operations
- Provider-specific extension points for SQL type mapping and identifier quoting
- Guarded
CreateTable<T>()flow that skips existing tables - Sync and async implementations for the common provider contract
Provider Extension Points
| Member | Purpose |
|---|---|
CreateConnection() |
Creates the concrete ADO.NET connection. |
QuoteIdentifier(string) |
Quotes table and column names for the provider dialect. |
GetSqlType(DatabasePropertyMap) |
Maps CLR property types to provider SQL types. |
BuildCreateTableSql(DatabaseEntityMap) |
Builds provider-specific table creation SQL. |
ParameterPrefix |
Selects parameter prefix such as @ or :. |
Design Principles
- Keep shared CRUD behavior in one place.
- Keep vendor drivers out of the core package.
- Keep SQL dialect differences inside concrete providers.
- Preserve the same application-facing API for every provider.
Dependencies
Dreamine.Database.AbstractionsDapper
Target Framework
net8.0
Related Packages
Dreamine.Database.AbstractionsDreamine.Database.SqliteDreamine.Database.MySqlDreamine.Database.OracleDreamine.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 | 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. |
-
net8.0
- Dapper (>= 2.1.66)
- Dreamine.Database.Abstractions (>= 1.0.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Dreamine.Database.Core:
| Package | Downloads |
|---|---|
|
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. |
|
|
Dreamine.Database.Oracle
Oracle provider for Dreamine Database. |
GitHub repositories
This package is not used by any popular GitHub repositories.