且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

config.json-在ASP.NET vNext中添加数据库连接字符串

更新时间:2023-02-17 10:26:47

是官方的配置库,而

This is the official Configuration repo and this is a great blog post explaining the configuration system.

长话短说:

  1. 您需要一个或多个 Microsoft.Framework.ConfigurationModel.*应用程序中的NuGet软件包.可用软件包的列表位于此处.
  2. 添加所需的配置源
  3. 构建配置文件
  4. 阅读配置源
  1. You need one or more Microsoft.Framework.ConfigurationModel.* NuGet packages in your application. The list of available packages is here.
  2. Add the configuration sources that you need
  3. Build the config file(s)
  4. Read the configuration sources