NeuCharFramework (NCF)
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • NcfPackageSources Source Guide
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • NcfPackageSources Source Guide
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • Quickstart And Capability Guide

    • NcfPackageSources Beginner Quickstart (60 Minutes)
    • NcfPackageSources Source Guide
    • NCF Capability Deep Dive (Practical)
    • Version Upgrade Notes
  • XNCF Extension Modules

    • XNCF Extension Library Guide (Senparc.Xncf.xxx)
  • NCF Libraries

    • Senparc.Ncf.Core
    • Senparc.Ncf.Database (Database Foundation)
    • Senparc.Ncf.Repository
    • Senparc.Ncf.Service
    • Senparc.Ncf.SMS
    • Senparc.Ncf.Mvc.UI
    • Senparc.Ncf.Log
    • Senparc.Ncf.Utility
    • Senparc.Ncf.XncfBase
    • Senparc.Ncf.AreaBase
    • Senparc.Ncf.DatabasePlant
  • Core Interfaces

    • IXncfRegister Interface (Current)

Senparc.Ncf.Database (Database Foundation)

Positioning

Senparc.Ncf.Database provides the shared database abstraction layer for NCF and underpins Repository, Service, and module-level database integration.

Key Capabilities

  • database configuration factory: DatabaseConfigurationFactory.Instance.Current
  • multi-db context pools: MultipleDatabasePool, XncfDatabaseDbContextPool
  • migration context attributes: MultipleMigrationDbContextAttribute
  • connection config model: SenparcDatabaseConnectionConfigs

Provider Projects in Source

The repository includes dedicated provider projects:

  • Senparc.Ncf.Database.SqlServer
  • Senparc.Ncf.Database.MySql
  • Senparc.Ncf.Database.PostgreSQL
  • Senparc.Ncf.Database.Oracle
  • Senparc.Ncf.Database.Sqlite
  • Senparc.Ncf.Database.Dm
  • Senparc.Ncf.Database.InMemory

Recommendations

  • Integrate module databases via IXncfDatabase + XncfDatabaseDbContext conventions.
  • Keep DB schema migrations aligned with module version lifecycle.
  • Validate DB provider switching end-to-end in the simulated site before production rollout.
Edit this page on GitHub
Last Updated:
Contributors: Jeffrey Su, JeffreySu
Prev
Senparc.Ncf.Core
Next
Senparc.Ncf.Repository