Skip to main content
net10.0

Senparc.Ncf.DatabasePlant 数据库组装厂。 一般只在开发环境下对数据库修改时使用,因此可以添加条件编译符号,如: <PackageReference Condition=" 'Release' != 'Release' " Include="Senparc.Ncf.DatabasePlant" Version="0.2.200.102-beta1" />

Published
Jul 31, 2026
2mo ago
Total Downloads
61.9K
61,861

Install

dotnet add package Senparc.Ncf.DatabasePlant --version 0.21.4-preview4
ProductVersions
.NET
net10.0

README

Senparc.Ncf.DatabasePlant

Senparc.Ncf.DatabasePlant is a development-time database provider bundle for NCF. It references the official NCF database adapters so that migrations and database maintenance can be performed against every supported provider from one project.

Features

  • Makes the SQL Server, SQLite, MySQL, PostgreSQL, Oracle, DaMeng (DM), and in-memory configuration types available together.
  • Helps module authors run multi-provider migration and schema checks during development.
  • Keeps production dependencies explicit: the bundle can be referenced only for non-Release builds.

Installation

<PackageReference Include="Senparc.Ncf.DatabasePlant" Version="0.26.0-preview3" />

For a development-only reference:

<ProjectReference Condition="'$(Configuration)' != 'Release'"
                  Include="..\..\..\Basic\Senparc.Ncf.DatabasePlant\Senparc.Ncf.DatabasePlant.csproj" />

Key API and usage

The package exposes the provider implementations consumed by Senparc.Ncf.Database.Register.UseNcfDatabase(...) and by XNCF migration infrastructure. The concrete types include MySqlDatabaseConfiguration, SqlServerDatabaseConfiguration, SqliteDatabaseConfiguration, PostgreSQLDatabaseConfiguration, OracleDatabaseConfiguration, DmDatabaseConfiguration, and InMemoryDatabaseConfiguration.

Use the provider-specific package in production when only one database engine is required. Keep this aggregate package in development or migration tooling to avoid shipping unnecessary providers.

Changes from Previous Version

No structural changes between v0.21.3-preview3 and v0.21.4-preview4.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.