.netcore项目codefirst时使用的配置文件是appsettings.json

.netcore项目创建完毕后,会发现项目中有好几个配置文件:

appsettings.json

appsettings.Development.json

appsettings.Production.json

等等自定义的或系统自带的配置文件;

但是当你使用EF的codefirst功能进行更新数据库时,项目使用的配置文件只用appsettings.json这一个。

(完)

原文地址:https://www.cnblogs.com/lishidefengchen/p/11570793.html