NeuCharFramework (NCF)
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

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

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

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

    • NCF - NeuCharFramework
    • About NCF
    • Environment Requirements
    • Frontend and Backend Separation Mode
    • Introduction to Xncf Modules
  • Prepare Development

    • Get NCF Template Source Code
    • Using Visual Studio to Run NCF
    • Running NCF Using CLI
    • Installation
    • Admin Login
    • Admin Backend
    • appsettings.json Configuration
    • Module Management
    • Accessing Documentation
  • Configuration

    • Entry File
    • Database Settings
    • appsettings.json Configuration
    • Docker
    • Dapr
    • Configure Multi-Tenant
    • Redis Cache
  • Modular Development

    • NCF Modular Development Concept
    • Composition of Xncf
    • Create the First Xncf Module
    • Xncf Module Sample Detailed Explanation
    • Implement Your Own Business Logic
    • Update Xncf Module
    • How to Call Between Modules
    • Publish Xncf Module to nuget.org
    • Update Base Library
    • Xncf Module Development
    • Embedding Static Resource Files into NCF
    • Publish Local Nuget Package
    • Advanced
  • Database

    • Database Settings
    • Multi-Database Support
    • Specify Database
    • Update database migration files for the Senparc.Service project (Migrations)
    • Multi-Database Principle
    • DatabasePlant
    • Tarmac Operation Database Migration and Update
  • Unit Testing

    • NCF Unit Test Introduction
    • Start Development
    • Advanced
    • Appendix
  • Q&A

    • NCF Terminology
    • NCF FAQ
  • Release

    • New Features
    • Upgrade Guide
    • Logs

NCF FAQ

Compilation Error Issues

Issue: rzc generate exited with code 2.

Image text

Solution reference:

Image text

<LangVersion>preview</LangVersion>

Error after modifying Mysql configuration and starting

Image text

Solution reference: How to switch Mysql

How to modify the default database connection string

  1. Open the file /src/Senparc.Web/App_Data/Database/SenparcConfig.config file

  2. Directly edit the connection string under the <ConnectionStringFull> node, for example:

    <ConnectionStringFull>
        <![CDATA[Server=.\;Database=NCF;User ID=sa;Pwd=sa;Trusted_Connection=True;integrated security=True;]]>
    </ConnectionStringFull>

Image text

Note:

  1. No need to modify any other content, other settings will be used for other purposes in the future, designed as a "maze" for hackers.

  2. After the official release, this connection string will be encrypted, and we will provide an encryption tool.

Error after creating a custom Xncf module: "rzc generate exited with code -2147450730"

Image text

Solution: Install sdk dotnet 2.1

Download link: https://dotnet.microsoft.com/en-us/download/dotnet/2.1

.NET CLI command dotnet ef execution error

Error message:

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET Core program, but dotnet-ef does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Solution: The command used is

dotnet ef database update

Check the current dot version is 3.0

Solution:

Need to update dotnet tool, the command used is:

dotnet tool update --global dotnet-ef --version 3.0.0-preview7.19362.6

After executing this command, updating the database was successful.

Reference link: https://blog.csdn.net/topdeveloperr/article/details/101282099

How to debug NCF

Reference link: https://www.cnblogs.com/szw/p/debug-remote-source-code.html

Backend UI Framework

Icon Reference

Modularization: How different modules pass data to each other

Reference link: https://element.eleme.cn/#/Reference link: https://colorlib.com/polygon/gentelella/icons.html The module itself is still composed of classes and methods. Some key methods (Functions, Services, WebApis, etc.) can be called at the code level. If you want to call via http(s), it is generally done using WebApi, passing data through Json.

Using the Developer/master branch version after 2021-03-28, executing generation after using the XncfBuilder module does not generate any content

Causes and solutions:

  1. The code is not up to date: Please pull the latest code.

  2. XNCF command not installed locally:

Open the command line tool and execute the following command:

dotnet new install Senparc.Xncf.XncfBuilder.Template

Note: CLI commands before .NET 7 runtime need to use --install:

dotnet new --install Senparc.Xncf.XncfBuilder.Template

After execution, you will see the following content

Image text

Generate the module according to the XncfBuilder module, and select the locally installed option in the following image

Image text

  1. The CLI of .NET 7 has a bug in generating templates. Please wait for the official fix or use the CLI of .NET 6.0.

NeuChar Sample Address

NeuChar-App-Sample

Edit this page on GitHub
Last Updated:
Contributors: Jeffrey Su
Prev
NCF Terminology